Preventing the default Escape Key behavior

When pressing the Escape Key on the keyboard it seems the built-in action is to select the block node the selection is within.

I do not desire this behavior. My editor use-case is like a Word or Google Docs document. Making the user become aware of the hierarchal structure is undesirable.

Is there a way to prevent this default behavior? Perhaps we should consider it become a command and add it to the example keymap rather than having it built in.

That’s exactly how it works already, so just change your keymap (you probably got it from baseKeymap) to not bind it.

Ah yes, thank you for not publicly shaming me as was your right. :smiley: I was looking at the example setup keymap and couldn’t find it anywhere in there.