diff --git a/common/content/editor.js b/common/content/editor.js index 35aff712..4bb8cfca 100644 --- a/common/content/editor.js +++ b/common/content/editor.js @@ -655,14 +655,8 @@ var Editor = Module("editor", { // Ugh. mappings.add([modes.INPUT, modes.CARET], - ["", "", "", "", "", "", "", - "", "", "", "", - "", "", "", "", "", "", "", - "", "", "", "", - "", "", "", "", "", "", "", - "", "", "", "", - "", "", "", "", "", "", "", - "", "", "", ""], + ["<*-CR>", "<*-BS>", "<*-Del>", "<*-Left>", "<*-Right>", "<*-Up>", "<*-Down>", + "<*-Home>", "<*-End>", "<*-PageUp>", "<*-PageDown>"], "Handled by " + config.host, function () Events.PASS); diff --git a/common/content/mappings.js b/common/content/mappings.js index e9d322fc..46f5a2d8 100644 --- a/common/content/mappings.js +++ b/common/content/mappings.js @@ -309,7 +309,8 @@ var Mappings = Module("mappings", { expandLeader: deprecated("expand", function expandLeader(keyString) keyString.replace(//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("*-"); }),