[incremental search] adding fix for handleKeyboard from @nightwing
This commit is contained in:
parent
f6ba62083e
commit
116e42c29a
1 changed files with 2 additions and 2 deletions
|
|
@ -161,11 +161,11 @@ oop.inherits(IncrementalSearchKeyboardHandler, HashHandler);
|
||||||
+ ", keyCode: " + keyCode);
|
+ ", keyCode: " + keyCode);
|
||||||
var cmd = handleKeyboard$super.call(this, data, hashId, key, keyCode);
|
var cmd = handleKeyboard$super.call(this, data, hashId, key, keyCode);
|
||||||
if (cmd.command) { return cmd; }
|
if (cmd.command) { return cmd; }
|
||||||
if (key.length === 1 && !(/[\x00-\x1F]/.test(key))) {
|
if (hashId == -1) {
|
||||||
var extendCmd = this.commands.extendSearchTerm;
|
var extendCmd = this.commands.extendSearchTerm;
|
||||||
if (extendCmd) { return {command: extendCmd, args: key}; }
|
if (extendCmd) { return {command: extendCmd, args: key}; }
|
||||||
}
|
}
|
||||||
return {command: "null"};
|
return {command: "null", passEvent: hashId == 0 || hashId == 4};
|
||||||
}
|
}
|
||||||
|
|
||||||
}).call(IncrementalSearchKeyboardHandler.prototype);
|
}).call(IncrementalSearchKeyboardHandler.prototype);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue