mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-12 19:25:45 +01:00
Use globbed modifiers for pass through keys.
This commit is contained in:
@@ -655,14 +655,8 @@ var Editor = Module("editor", {
|
|||||||
|
|
||||||
// Ugh.
|
// Ugh.
|
||||||
mappings.add([modes.INPUT, modes.CARET],
|
mappings.add([modes.INPUT, modes.CARET],
|
||||||
["<CR>", "<BS>", "<Del>", "<Left>", "<Right>", "<Up>", "<Down>",
|
["<*-CR>", "<*-BS>", "<*-Del>", "<*-Left>", "<*-Right>", "<*-Up>", "<*-Down>",
|
||||||
"<Home>", "<End>", "<PageUp>", "<PageDown>",
|
"<*-Home>", "<*-End>", "<*-PageUp>", "<*-PageDown>"],
|
||||||
"<C-CR>", "<C-BS>", "<C-Del>", "<C-Left>", "<C-Right>", "<C-Up>", "<C-Down>",
|
|
||||||
"<C-Home>", "<C-End>", "<C-PageUp>", "<C-PageDown>",
|
|
||||||
"<S-CR>", "<S-BS>", "<S-Del>", "<S-Left>", "<S-Right>", "<S-Up>", "<S-Down>",
|
|
||||||
"<S-Home>", "<S-End>", "<S-PageUp>", "<S-PageDown>",
|
|
||||||
"<C-S-CR>", "<C-S-BS>", "<C-S-Del>", "<C-S-Left>", "<C-S-Right>", "<C-S-Up>", "<C-S-Down>",
|
|
||||||
"<C-S-Home>", "<C-S-End>", "<C-S-PageUp>", "<C-S-PageDown>"],
|
|
||||||
"Handled by " + config.host,
|
"Handled by " + config.host,
|
||||||
function () Events.PASS);
|
function () Events.PASS);
|
||||||
|
|
||||||
|
|||||||
@@ -309,7 +309,8 @@ var Mappings = Module("mappings", {
|
|||||||
expandLeader: deprecated("expand", function expandLeader(keyString) keyString.replace(/<Leader>/i, options["mapleader"])),
|
expandLeader: deprecated("expand", function expandLeader(keyString) keyString.replace(/<Leader>/i, options["mapleader"])),
|
||||||
|
|
||||||
prefixes: Class.memoize(function () {
|
prefixes: Class.memoize(function () {
|
||||||
let list = Array.slice("CASM").map(function (s) s + "-");
|
let list = Array.map("CASM", function (s) s + "-");
|
||||||
|
|
||||||
return iter(util.range(0, 1 << list.length)).map(function (mask)
|
return iter(util.range(0, 1 << list.length)).map(function (mask)
|
||||||
list.filter(function (p, i) mask & (1 << i)).join("")).toArray().concat("*-");
|
list.filter(function (p, i) mask & (1 << i)).join("")).toArray().concat("*-");
|
||||||
}),
|
}),
|
||||||
|
|||||||
Reference in New Issue
Block a user