1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-20 18:15:51 +01:00

Use globbed modifiers for pass through keys.

This commit is contained in:
Kris Maglione
2011-03-14 15:45:05 -04:00
parent f8bd1fd4fb
commit 9c0180a8a3
2 changed files with 4 additions and 9 deletions

View File

@@ -309,7 +309,8 @@ var Mappings = Module("mappings", {
expandLeader: deprecated("expand", function expandLeader(keyString) keyString.replace(/<Leader>/i, options["mapleader"])),
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)
list.filter(function (p, i) mask & (1 << i)).join("")).toArray().concat("*-");
}),