Hi all,
CodeMirror 6 v0.7.0 is online and includes a new Keyboard Shortcut system.
It allows changing the CodeMirror KeyMap by creating Tiddlers with the tag $:/tags/KeyboardShortcut/CodeMirror.
It’s based on the Tiddlywiki Core system but doesn’t use event.keyCode to get the key that’s being pressed - but uses event.key… this sadly ditches Internet Explorer support 
But the upside is, that we can use the Keyboard Shortcuts easily for CodeMirror, too, without having to convert them from TiddlyWiki format to CodeMirror format in a complicated manner.
This Keyboard Shortcut system needs testing. KB shortcuts should still work the same way, KB shortcut names shouldn’t change. If they do, I need to update an internal conversion-table. Currently this table is short, I’m sure I need to add some entries. It looks like this:
var conversionKeys = {
"ArrowLeft": "Left",
"ArrowRight": "Right",
"ArrowUp": "Up",
"ArrowDown": "Down",
",": "Comma",
";": "Semicolon",
".": "Period",
":": "Colon"
};
I’m not experienced in which other characters need conversion, we’ll find out.
Please let me know if there are issues that arise from this change. It’s pretty experimental still.
Thank you,
Simon
no doesn’t work yet!








