Is there a way from within an extraKeys handler to call the default behavior for that key ?
That is can I do for example:
CodeMirror.setOption(“extraKeys”, {
Tab: function(cm) {
if (cond) {
// my special tab behavior
} else {
// CM default ‘normal’ tab behavior
}
});
What I’m trying to achieve is to override Ctrl+Right so that if it’s pressed on a blank line it will jump under the indentation of the previous line, but otherwise will work as normal.
Thanks!
Micha