1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-21 19:47:59 +01:00

Make <Esc> a normal mapping rather than a grotesque hack.

This commit is contained in:
Kris Maglione
2011-01-19 20:30:54 -05:00
parent a8a840afc2
commit 95eb8aaf93
4 changed files with 19 additions and 32 deletions

View File

@@ -994,7 +994,7 @@ var CommandLine = Module("commandline", {
if (this._completions)
this._completions.previewClear();
if (!this.currentExtendedMode)
return Events.isEscape(event) ? KILL : PASS;
return PASS;
// user pressed <Enter> to carry out a command
// user pressing <Esc> is handled in the global onEscape
@@ -1028,7 +1028,7 @@ var CommandLine = Module("commandline", {
}
}
// allow this event to be handled by the host app
return Events.isEscape(event) ? KILL : PASS;
return PASS;
}
else if (event.type == "keyup") {
let key = events.toString(event);