mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 00:17:57 +01:00
Alias ? to <S-Slash>. Closes issue #654.
This commit is contained in:
@@ -103,6 +103,7 @@ var AutoCommands = Module("autocommands", {
|
|||||||
return cmds;
|
return cmds;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
XML.prettyPrinting = XML.ignoreWhitespace = false;
|
||||||
commandline.commandOutput(
|
commandline.commandOutput(
|
||||||
<table>
|
<table>
|
||||||
<tr highlight="Title">
|
<tr highlight="Title">
|
||||||
@@ -110,15 +111,16 @@ var AutoCommands = Module("autocommands", {
|
|||||||
</tr>
|
</tr>
|
||||||
{
|
{
|
||||||
template.map(hives, function (hive)
|
template.map(hives, function (hive)
|
||||||
<tr highlight="Title">
|
<tr>
|
||||||
<td colspan="3">{hive.name}</td>
|
<td colspan="3"><span highlight="Title">{hive.name}</span>
|
||||||
|
{hive.filter}</td>
|
||||||
</tr> +
|
</tr> +
|
||||||
<tr style="height: .5ex;"/> +
|
<tr style="height: .5ex;"/> +
|
||||||
template.map(cmds(hive), function ([event, items])
|
template.map(cmds(hive), function ([event, items])
|
||||||
<tr style="height: .5ex;"/> +
|
<tr style="height: .5ex;"/> +
|
||||||
template.map(items, function (item, i)
|
template.map(items, function (item, i)
|
||||||
<tr>
|
<tr>
|
||||||
<td highlight="Title" style="padding-right: 1em;">{i == 0 ? event : ""}</td>
|
<td highlight="Title" style="padding-left: 1em; padding-right: 1em;">{i == 0 ? event : ""}</td>
|
||||||
<td>{item.filter.toXML ? item.filter.toXML() : item.filter}</td>
|
<td>{item.filter.toXML ? item.filter.toXML() : item.filter}</td>
|
||||||
<td>{item.command}</td>
|
<td>{item.command}</td>
|
||||||
</tr>) +
|
</tr>) +
|
||||||
|
|||||||
@@ -799,11 +799,15 @@ var Events = Module("events", {
|
|||||||
function (mode) mappings.hives.some(
|
function (mode) mappings.hives.some(
|
||||||
function (hive) hive.get(mode, key) || hive.getCandidates(mode, key)));
|
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")
|
if (event.type === "keydown")
|
||||||
this.passing = pass;
|
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
|
// Prevents certain sites from transferring focus to an input box
|
||||||
// before we get a chance to process our key bindings on the
|
// before we get a chance to process our key bindings on the
|
||||||
// "keypress" event.
|
// "keypress" event.
|
||||||
|
|||||||
@@ -65,7 +65,7 @@
|
|||||||
</item>
|
</item>
|
||||||
|
|
||||||
<item>
|
<item>
|
||||||
<tags><![CDATA[<find-backward> ?]]></tags>
|
<tags><![CDATA[<find-backward> <S-Slash> ?]]></tags>
|
||||||
<spec>?<a>pattern</a><k name="CR" link="false"/></spec>
|
<spec>?<a>pattern</a><k name="CR" link="false"/></spec>
|
||||||
<description>
|
<description>
|
||||||
<p>
|
<p>
|
||||||
|
|||||||
@@ -268,7 +268,7 @@ var RangeFinder = Module("rangefinder", {
|
|||||||
function () { rangefinder.openPrompt(modes.FIND_FORWARD); });
|
function () { rangefinder.openPrompt(modes.FIND_FORWARD); });
|
||||||
|
|
||||||
mappings.add(myModes,
|
mappings.add(myModes,
|
||||||
["?", "<find-backward>"], "Find a pattern backward of the current caret position",
|
["?", "<find-backward>", "<S-Slash>"], "Find a pattern backward of the current caret position",
|
||||||
function () { rangefinder.openPrompt(modes.FIND_BACKWARD); });
|
function () { rangefinder.openPrompt(modes.FIND_BACKWARD); });
|
||||||
|
|
||||||
mappings.add(myModes,
|
mappings.add(myModes,
|
||||||
|
|||||||
Reference in New Issue
Block a user