mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-21 09:25:50 +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",
|
command: "map",
|
||||||
options: array([
|
options: array([
|
||||||
hive !== mappings.user && ["-group", hive.name],
|
hive.name !== "user" && ["-group", hive.name],
|
||||||
["-modes", uniqueModes(map.modes)],
|
["-modes", uniqueModes(map.modes)],
|
||||||
["-description", map.description],
|
["-description", map.description],
|
||||||
map.silent && ["-silent"]])
|
map.silent && ["-silent"]])
|
||||||
@@ -568,12 +568,12 @@ var Mappings = Module("mappings", {
|
|||||||
commands.add([ch ? ch + "m[ap]" : "map"],
|
commands.add([ch ? ch + "m[ap]" : "map"],
|
||||||
"Map a key sequence" + modeDescription,
|
"Map a key sequence" + modeDescription,
|
||||||
function (args) { map(args, false); },
|
function (args) { map(args, false); },
|
||||||
opts);
|
update({}, opts));
|
||||||
|
|
||||||
commands.add([ch + "no[remap]"],
|
commands.add([ch + "no[remap]"],
|
||||||
"Map a key sequence without remapping keys" + modeDescription,
|
"Map a key sequence without remapping keys" + modeDescription,
|
||||||
function (args) { map(args, true); },
|
function (args) { map(args, true); },
|
||||||
opts);
|
update({}, opts));
|
||||||
|
|
||||||
commands.add([ch + "unm[ap]"],
|
commands.add([ch + "unm[ap]"],
|
||||||
"Remove a mapping" + modeDescription,
|
"Remove a mapping" + modeDescription,
|
||||||
|
|||||||
@@ -242,7 +242,9 @@ var Hive = Class("Hive", {
|
|||||||
* @author Kris Maglione <maglione.k@gmail.com>
|
* @author Kris Maglione <maglione.k@gmail.com>
|
||||||
*/
|
*/
|
||||||
var Styles = Module("Styles", {
|
var Styles = Module("Styles", {
|
||||||
Local: function (dactyl, modules, window) ({}),
|
Local: function (dactyl, modules, window) ({
|
||||||
|
cleanup: function () {}
|
||||||
|
}),
|
||||||
|
|
||||||
init: function () {
|
init: function () {
|
||||||
this._id = 0;
|
this._id = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user