Listen to beforeInput events
Listen to beforeInput events

FEATURE: The history plugin now listens for `beforeInput` events with
`historyUndo` or `historyRedo` type, and applies the undo/redo
commands when they occur.

Issue https://github.com/ProseMirror/prosemirror/issues/1196

ProseMirror/prosemirror-history