1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-31 10:25:45 +01:00

Fix :map serialization bug.

--HG--
extra : rebase_source : bb62f05a95699fad0a64d07b35cd79fc653d89c7
This commit is contained in:
Kris Maglione
2011-02-12 11:57:51 -05:00
parent 5bc5c91c05
commit e7529166df
2 changed files with 6 additions and 4 deletions

View File

@@ -539,7 +539,7 @@ var Mappings = Module("mappings", {
{
command: "map",
options: array([
hive !== mappings.user && ["-group", hive.name],
hive.name !== "user" && ["-group", hive.name],
["-modes", uniqueModes(map.modes)],
["-description", map.description],
map.silent && ["-silent"]])
@@ -568,12 +568,12 @@ var Mappings = Module("mappings", {
commands.add([ch ? ch + "m[ap]" : "map"],
"Map a key sequence" + modeDescription,
function (args) { map(args, false); },
opts);
update({}, opts));
commands.add([ch + "no[remap]"],
"Map a key sequence without remapping keys" + modeDescription,
function (args) { map(args, true); },
opts);
update({}, opts));
commands.add([ch + "unm[ap]"],
"Remove a mapping" + modeDescription,