1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-04 10:04:12 +01:00

Further mode names normalisation in docs.

--HG--
extra : rebase_source : 6c4be66d8c4ac56d10e7d86fc45da7b80ff484aa
This commit is contained in:
Doug Kearns
2011-07-29 19:18:42 +10:00
parent a0de5d9e24
commit f5d721740a
22 changed files with 65 additions and 65 deletions

View File

@@ -13,7 +13,7 @@
* inserted expansion string.
*
* Abbreviations have a left-hand side (LHS) whose text is replaced by that of
* the right-hand side (RHS) when triggered by an input mode expansion key.
* the right-hand side (RHS) when triggered by an Input mode expansion key.
* E.g. an abbreviation with a LHS of "gop" and RHS of "Grand Old Party" will
* replace the former with the latter.
*

View File

@@ -1432,7 +1432,7 @@ var CommandLine = Module("commandline", {
mappings: function init_mappings() {
mappings.add([modes.COMMAND],
[":"], "Enter command-line mode",
[":"], "Enter Command Line mode",
function () { CommandExMode().open(""); });
mappings.add([modes.INPUT_MULTILINE],

View File

@@ -669,14 +669,14 @@ var Editor = Module("editor", {
function () Events.PASS);
mappings.add([modes.INSERT],
["<Space>", "<Return>"], "Expand insert mode abbreviation",
["<Space>", "<Return>"], "Expand Insert mode abbreviation",
function () {
editor.expandAbbreviation(modes.INSERT);
return Events.PASS_THROUGH;
});
mappings.add([modes.INSERT],
["<C-]>", "<C-5>"], "Expand insert mode abbreviation",
["<C-]>", "<C-5>"], "Expand Insert mode abbreviation",
function () { editor.expandAbbreviation(modes.INSERT); });
// text edit mode

View File

@@ -396,7 +396,7 @@ var HintSession = Class("HintSession", CommandMode, {
},
/**
* Handle a hint mode event.
* Handle a hints mode event.
*
* @param {Event} event The event to handle.
*/
@@ -774,7 +774,7 @@ var Hints = Module("hints", {
hintSession: Modes.boundProperty(),
/**
* Creates a new hint mode.
* Creates a new hints mode.
*
* @param {string} mode The letter that identifies this mode.
* @param {string} prompt The description to display to the user
@@ -1245,7 +1245,7 @@ var Hints = Module("hints", {
});
options.add(["hinttags", "ht"],
"XPath or CSS selector strings of hintable elements for hint mode",
"XPath or CSS selector strings of hintable elements for Hints mode",
"stringlist", "input:not([type=hidden]),a[href],area,iframe,textarea,button,select," +
"[onclick],[onmouseover],[onmousedown],[onmouseup],[oncommand]," +
"[tabindex],[role=link],[role=button],[contenteditable=true]",

View File

@@ -691,7 +691,7 @@ var Mappings = Module("mappings", {
if (mode.char && !commands.get(mode.char + "map", true))
addMapCommands(mode.char,
[m.mask for (m in modes.mainModes) if (m.char == mode.char)],
[mode.name]);
mode.displayName);
let args = {
getMode: function (args) findMode(args["-mode"]),