You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code in flexx issue #312 does not work in a flx.Widget that wraps an ace editor, as shown in the ace editor example. True, this is not really a flexx issue, but any words of wisdom would be appreciated.
Here is the present emitter for the body pane:
# **Does** fire for most plain keys and control keys.# Does **not** fire for Ctrl-A, Ctrl-F, tab or backspace.@flx.emitterdefkey_press(self, e):
ev=self._create_key_event(e)
f_key=notev['modifiers'] andev['key'].startswith('F')
print('BODY: key_press', repr(ev), 'preventDefault', notf_key)
ifnotf_key:
e.preventDefault()
returnev
This is a serious problem for LeoWapp. I shall investigate what CodeMirror does.
Actually, this (over?) simplified emitter exhibits the same behavior:
I suspect that the editors will also consume (i.e. call e.preventDefault()) certain events. Tab is a good example. The editor need to consume that event, or the browser will see the tab key and change focus to the next tabbable element.
The code in flexx issue #312 does not work in a flx.Widget that wraps an ace editor, as shown in the ace editor example. True, this is not really a flexx issue, but any words of wisdom would be appreciated.
Here is the present emitter for the body pane:
This is a serious problem for LeoWapp. I shall investigate what CodeMirror does.
Actually, this (over?) simplified emitter exhibits the same behavior:
The text was updated successfully, but these errors were encountered: