mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-11 00:45:45 +01:00
Fix typo in mappings.addUserMap - broken in 5a9b51a.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user