Is there a way to determine which key was pressed that caused a transaction to be passed to the dispatcher?
I can’t see anything obvious - and so figure I might have to hook into the base key mappings to get that event, but figured I’d ask in case this is being passed around and I’m not spotting it.
Unless I’m thinking about this in completely the wrong way (likely)…is there a wildcard way of binding to all keys?
That way I could fire a key event, and cancel (return
false) if needed within the command before any other registered commands are invoked.
I can only see a way of binding to explicit key combinations in [prosemirror-keymap]