mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 03:07:58 +01:00
Fix some key handling bugs. Closes issue #210.
This commit is contained in:
@@ -470,6 +470,7 @@ const CommandLine = Module("commandline", {
|
||||
this.widgets.message = null;
|
||||
|
||||
modes.push(modes.COMMAND_LINE, this.currentExtendedMode, {
|
||||
onEvent: this.closure.onEvent,
|
||||
leave: function (params) {
|
||||
if (params.pop)
|
||||
commandline.leave();
|
||||
@@ -746,6 +747,7 @@ const CommandLine = Module("commandline", {
|
||||
|
||||
modes.push(modes.COMMAND_LINE, modes.PROMPT | extra.extended,
|
||||
update(Object.create(extra), {
|
||||
onEvent: extra.onEvent || this.closure.onEvent,
|
||||
leave: function leave(stack) {
|
||||
commandline.leave(stack);
|
||||
leave.supercall(this, stack);
|
||||
|
||||
Reference in New Issue
Block a user