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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user