Fired on keypress
// handle the various key events var modifiers = (e.ctrlKey && !e.altKey) ? this.KEY_CTRL : 0 | e.shiftKey ? this.KEY_SHIFT : 0; var key = e.keyChar || e.keyCode; if(this._keyHandlers[key]){ // console.debug("char:", e.key); var handlers = this._keyHandlers[key], i = 0, h; while((h = handlers[i++])){ if(modifiers == h.modifiers){ if(!h.handler.apply(this,arguments)){ e.preventDefault(); } break; } } } // function call after the character has been inserted setTimeout(dojo.hitch(this, function(){ this.onKeyPressed(e); }), 1);