diff --git a/lib/ace/keyboard/keybinding.js b/lib/ace/keyboard/keybinding.js index 02ef6992..6aab9452 100644 --- a/lib/ace/keyboard/keybinding.js +++ b/lib/ace/keyboard/keybinding.js @@ -71,7 +71,7 @@ var KeyBinding = function(editor) { }; this.getKeyboardHandler = function() { - return this.$handlers[this.$handlers - 1]; + return this.$handlers[this.$handlers.length - 1]; }; this.$callKeyboardHandlers = function (hashId, keyString, keyCode, e) {