Handle beforeinput events
Author: marijnhCreated Aug 5, 2017Updated Apr 7, 2026
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.
Source: ProseMirror/prosemirror