mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-04 12:05:46 +01:00
Fix :map serialization bug.
--HG-- extra : rebase_source : bb62f05a95699fad0a64d07b35cd79fc653d89c7
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -242,7 +242,9 @@ var Hive = Class("Hive", {
|
||||
* @author Kris Maglione <maglione.k@gmail.com>
|
||||
*/
|
||||
var Styles = Module("Styles", {
|
||||
Local: function (dactyl, modules, window) ({}),
|
||||
Local: function (dactyl, modules, window) ({
|
||||
cleanup: function () {}
|
||||
}),
|
||||
|
||||
init: function () {
|
||||
this._id = 0;
|
||||
|
||||
Reference in New Issue
Block a user