[incremental search] adding fix for handleKeyboard from @nightwing

This commit is contained in:
Robert Krahn 2013-03-16 18:39:11 -07:00
commit 116e42c29a

View file

@ -161,11 +161,11 @@ oop.inherits(IncrementalSearchKeyboardHandler, HashHandler);
+ ", keyCode: " + keyCode);
var cmd = handleKeyboard$super.call(this, data, hashId, key, keyCode);
if (cmd.command) { return cmd; }
if (key.length === 1 && !(/[\x00-\x1F]/.test(key))) {
if (hashId == -1) {
var extendCmd = this.commands.extendSearchTerm;
if (extendCmd) { return {command: extendCmd, args: key}; }
}
return {command: "null"};
return {command: "null", passEvent: hashId == 0 || hashId == 4};
}
}).call(IncrementalSearchKeyboardHandler.prototype);