1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-24 07:12:28 +01:00

Mapping refactoring and bug fixes.

This commit is contained in:
Kris Maglione
2011-01-18 05:17:34 -05:00
parent 53248645c2
commit c096804e0f
3 changed files with 204 additions and 185 deletions

View File

@@ -1008,20 +1008,14 @@ var CommandLine = Module("commandline", {
}
// user pressed <Up> or <Down> arrow to cycle history completion
else if (/^<(Up|Down|S-Up|S-Down)>$/.test(key)) {
// prevent tab from moving to the next field
event.preventDefault();
event.stopPropagation();
dactyl.assert(this._history);
this._history.select(/Up/.test(key), !/S-/.test(key));
return KILL;
}
// user pressed <Tab> to get completions of a command
else if (/^<(?:A-)?(?:S-)?Tab>$/.test(key)) {
// prevent tab from moving to the next field
event.preventDefault();
event.stopPropagation();
this._tabTimer.tell(event);
return KILL;
}
else if (key == "<BS>") {
// reset the tab completion