diff --git a/common/content/commandline.js b/common/content/commandline.js index 45de671b..4ecc9517 100644 --- a/common/content/commandline.js +++ b/common/content/commandline.js @@ -1687,12 +1687,6 @@ var CommandLine = Module("commandline", { }); }, mappings: function () { - var myModes = [modes.COMMAND_LINE]; - - // TODO: move "", "" here from mappings - mappings.add(myModes, - [""], "Focus content", - function () { events.onEscape(); }); // Any "non-keyword" character triggers abbreviation expansion // TODO: Add "" and "" to this list @@ -1701,7 +1695,7 @@ var CommandLine = Module("commandline", { // TODO: Make non-keyword recognition smarter so that there need not // be two lists of the same characters (one here and a regexp in // mappings.js) - mappings.add(myModes, + mappings.add([modes.COMMAND_LINE], ["", '"', "'"], "Expand command line abbreviation", function () { commandline.resetCompletions(); @@ -1709,7 +1703,7 @@ var CommandLine = Module("commandline", { return Events.PASS; }); - mappings.add(myModes, + mappings.add([modes.COMMAND_LINE], ["", ""], "Expand command line abbreviation", function () { editor.expandAbbreviation(modes.COMMAND_LINE); }); @@ -1720,11 +1714,11 @@ var CommandLine = Module("commandline", { commandline._echoMultiline(commandline._lastMowOutput, commandline.HL_NORMAL); }); - mappings.add(myModes, + mappings.add([modes.COMMAND_LINE], ["", ""], "Recall the previous command line from the history list", function () { events.feedkeys(""); }); - mappings.add(myModes, + mappings.add([modes.COMMAND_LINE], ["", ""], "Recall the next command line from the history list", function () { events.feedkeys(""); }); @@ -1737,10 +1731,6 @@ var CommandLine = Module("commandline", { function win() commandline.widgets.multilineOutput.contentWindow; function atEnd(dir) !Buffer.isScrollable(body(), dir || 1); - mappings.add([modes.OUTPUT_MULTILINE], - ["", ""], "Exit multi-line output mode", - function () {}); - const PASS = true; const DROP = false; const BEEP = {}; diff --git a/common/content/modes.js b/common/content/modes.js index b0a52e4b..0f62e38e 100644 --- a/common/content/modes.js +++ b/common/content/modes.js @@ -494,17 +494,17 @@ var Modes = Module("modes", { mappings.add([modes.BASE], ["", ""], "Return to NORMAL mode", - function () { modes.reset() }); + function () { modes.reset(); }); mappings.add([modes.INPUT, modes.COMMAND, modes.PASS_THROUGH, modes.QUOTE], ["", ""], "Return to the previous mode", - function () { modes.reset() }); + function () { modes.pop(); }); mappings.add([modes.MENU], ["", ""], "Close the current popup", - function () events.PASS); + function () Events.PASS); }, prefs: function () { prefs.watch("accessibility.browsewithcaret", modes.closure.onCaretChange);