Hi Marcel,

qooxdoo is actually preventing the keypress in certain circumstances.
We are investigating to fix that issue. But by now you can use the following 
fix:

document.getElementById("codeMirror").addEventListener("keypress", function(e) {
    e.stopPropagation();
}, false);

Regards,
Romeo



Von: Marcel Ruff [mailto:[email protected]]
Gesendet: Mittwoch, 18. Februar 2015 12:29
An: qooxdoo Development
Betreff: [qooxdoo-devel] Javascript editor CodeMirror integration: Space key is 
not invoked properly

Hi,

I use CodeMirror.version = "4.12.1" (same with 4.12.0)
and qooxdoo 4.1 desktop in google-chrome or firefox on Linux.

CodeMirror is embedded into qooxdoo with
  qx.ui.embed.Html("<div id='codeMirror' style='height: 100%; width: 100%'/>")
and attached to the div.

When I hit the space key ( keyCode 32) inside the CodeMirror editor nothing 
happens,
the other keys work fine.

Testing the editor on the CodeMirror demo page works fine (without qooxdoo).

I have now the impression that some timing issues in combination with qooxdoo 
prevents codemirror to process the key properly.

Any idea what could be the issue?

Thank you
Marcel

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to