Hi,
I use CodeMirror.version = “4.12.1” (same with 4.12.0)
in google-chrome or firefox on Linux.
When I hit the “Space” key (keyCode 32) inside the editor nothing happens,
the other keys work fine.
The Editor ist embedded into qooxdoo.org 4.1 desktop (testing your editor on your demo page works fine).
I have now the impression that some timing issues in combination with qooxdoo prevents codemirror to process the key properly.
onKeyPress(e) {}
is called
var ch = String.fromCharCode(charCode == null ? keyCode : charCode);
ch contains the " "
but does not draw the blank.
function dispatchKey(cm, name, e, handle)
is run similar for a good key (eg ‘5’) as for the failing key ‘Space’.
How does a key end up to be visible in the editor?
Interesting is that when setting a break-point into dispatchKey()
all key-hits don’t work. Looks like some timing issue involved when processing …
Is there any workaround possible?
Thank you
Marcel