20% of the entire src/blocks.js file is devoted to handleKeyDown(), which has grown into some seriously monstrous spaghetti code. It needs to be moved out to a separate file (ditto for kbd related tests).
It would be nice to also make these configurable, riffing off CodeMirror's keyMap implementation.
20% of the entire
src/blocks.js
file is devoted tohandleKeyDown()
, which has grown into some seriously monstrous spaghetti code. It needs to be moved out to a separate file (ditto for kbd related tests).It would be nice to also make these configurable, riffing off CodeMirror's
keyMap
implementation.