Hey, I’d like to know how I can intercept a keybinding in an init script.
There’s a plugin which prevents typing a closing parenthesis in certain circumstances, and most of the time this is what I want. But sometimes, I need to type it in. I would like to make it so that if I press “Esc” it toggle off the plugin, and the next key I type is inserted into the editor, and then the plugin is activated again. So I need to know how I can from an init script listen for a key.