i am a bit confused about the keydown of “esc”. when press esc, the editor blurs but nothing else happens, if continue press esc, it will fire handleKeydown in my plugin which is what i expected…
is the blur from esc event by default ?
i checked all discuss about Escape, i do used baseKeymap from prosemirror-commands as blow:
public keys() {
return mappedKeys: Record = {
...mapObject(baseKeymap, (key, value) => [
key,
convertCommand(value),
])
};
}
but i checked the return value of keymap( collectedKeys from all my plugins ), it has no “Escape” at all. is there anything i am doing wrong ? thanks