From dcad48c23bd097ab16dfd0f8b190c2c63c799fe4 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Tue, 25 Oct 2011 17:14:37 -0400 Subject: [PATCH] Alias ? to . Closes issue #654. --- common/content/autocommands.js | 8 +++++--- common/content/events.js | 8 ++++++-- common/locale/en-US/pattern.xml | 2 +- common/modules/finder.jsm | 2 +- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/common/content/autocommands.js b/common/content/autocommands.js index 5bd58e43..205cf4bf 100644 --- a/common/content/autocommands.js +++ b/common/content/autocommands.js @@ -103,6 +103,7 @@ var AutoCommands = Module("autocommands", { return cmds; } + XML.prettyPrinting = XML.ignoreWhitespace = false; commandline.commandOutput( @@ -110,15 +111,16 @@ var AutoCommands = Module("autocommands", { { template.map(hives, function (hive) - - + + + + template.map(cmds(hive), function ([event, items]) + template.map(items, function (item, i) - + ) + diff --git a/common/content/events.js b/common/content/events.js index 5d1ad674..ae1f669a 100644 --- a/common/content/events.js +++ b/common/content/events.js @@ -799,11 +799,15 @@ var Events = Module("events", { function (mode) mappings.hives.some( function (hive) hive.get(mode, key) || hive.getCandidates(mode, key))); + events.dbg("ON " + event.type.toUpperCase() + " " + DOM.Event.stringify(event) + + " passing: " + this.passing + " " + + " pass: " + pass + + " replay: " + event.isReplay + + " macro: " + event.isMacro); + if (event.type === "keydown") this.passing = pass; - events.dbg("ON " + event.type.toUpperCase() + " " + DOM.Event.stringify(event) + " pass: " + pass + " replay: " + event.isReplay + " macro: " + event.isMacro); - // Prevents certain sites from transferring focus to an input box // before we get a chance to process our key bindings on the // "keypress" event. diff --git a/common/locale/en-US/pattern.xml b/common/locale/en-US/pattern.xml index f1bc4e92..df43f02a 100644 --- a/common/locale/en-US/pattern.xml +++ b/common/locale/en-US/pattern.xml @@ -65,7 +65,7 @@ - ?]]> + ?]]> ?pattern

diff --git a/common/modules/finder.jsm b/common/modules/finder.jsm index 133e6f20..58d1ce97 100644 --- a/common/modules/finder.jsm +++ b/common/modules/finder.jsm @@ -268,7 +268,7 @@ var RangeFinder = Module("rangefinder", { function () { rangefinder.openPrompt(modes.FIND_FORWARD); }); mappings.add(myModes, - ["?", ""], "Find a pattern backward of the current caret position", + ["?", "", ""], "Find a pattern backward of the current caret position", function () { rangefinder.openPrompt(modes.FIND_BACKWARD); }); mappings.add(myModes,

{hive.name}
{hive.name} + {hive.filter}
{i == 0 ? event : ""}{i == 0 ? event : ""} {item.filter.toXML ? item.filter.toXML() : item.filter} {item.command}