Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle beforeinput events #684

Open
marijnh opened this issue Aug 5, 2017 · 2 comments
Open

Handle beforeinput events #684

marijnh opened this issue Aug 5, 2017 · 2 comments

Comments

@marijnh
Copy link
Member

marijnh commented Aug 5, 2017

Browsers are starting to ship these events, and they can be useful for some things, like detecting an undo/redo from the menu. Not sure yet whether this belongs in the core or in a plugin.

In a perfect future, a lot of keybindings could be replaced by binding input types, but I expect it'll be a while before any browsers are that far.

@holtwick
Copy link

holtwick commented Oct 4, 2019

Starting with iOS 13 it is possible to trigger UNDO with 3 finger gestures like 3-finger-swipe to the left or double tapping with 3 fingers. This native UNDO does not work well with ProseMirror. I wrote a plugin for TipTap solving the issue for me based on discussions on the ProseMirror discussion list. But maybe something like this should get into the core of ProseMirror? See ueberdosis/tiptap#468

@marijnh
Copy link
Member Author

marijnh commented Oct 8, 2019

Putting code like this into the history package and exporting it as a separate plugin might be a good idea. I think it's too terrible a hack to enable by default, but it might be useful to a lot of people.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants