The CodeEditor can add a listener for the method .on_key_press() which takes an IKeyboardEvent. However there is no interface to create one. You can use the .on_key_press() method to create a DisposableClosure but there doesn't seem to be an interface to actually add this as an action to the editor.
It would be great if there were an example showing how to do this.
The CodeEditor can add a listener for the method
.on_key_press()which takes anIKeyboardEvent. However there is no interface to create one. You can use the.on_key_press()method to create a DisposableClosure but there doesn't seem to be an interface to actually add this as an action to the editor.It would be great if there were an example showing how to do this.