1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-11 02:45:45 +01:00

Fix typo in mappings.addUserMap - broken in 5a9b51a.

This commit is contained in:
Doug Kearns
2009-07-02 18:24:25 +10:00
parent ed62a23c83
commit 29ce60821b

View File

@@ -156,6 +156,7 @@ function Mappings() //{{{
function addMap(map) function addMap(map)
{ {
liberator.log(map)
let where = map.isUserMap ? user : main; let where = map.isUserMap ? user : main;
map.modes.forEach(function (mode) { map.modes.forEach(function (mode) {
if (!(mode in where)) if (!(mode in where))
@@ -401,7 +402,7 @@ function Mappings() //{{{
{ {
keys = keys.map(expandLeader); keys = keys.map(expandLeader);
extra = extra || {}; extra = extra || {};
extra.isUserCommand = true; extra.isUserMap = true;
let map = new Map(modes, keys, description || "User defined mapping", action, extra); let map = new Map(modes, keys, description || "User defined mapping", action, extra);
// remove all old mappings to this key sequence // remove all old mappings to this key sequence