bootstrapworld / codemirror-blocks

A library for building language-specific, CodeMirror-friendly editors that are a11y-friendly.
28 stars 11 forks source link

Kbd Shortcut Overhaul #117

Closed schanzer closed 6 years ago

schanzer commented 6 years ago

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.

schanzer commented 6 years ago

Fixed on both master and new-reactify