mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-11 07:35:45 +01:00
minor refactoring of :mapclear action
This commit is contained in:
@@ -223,11 +223,7 @@ function Mappings() //{{{
|
|||||||
|
|
||||||
commands.add([ch + "mapc[lear]"],
|
commands.add([ch + "mapc[lear]"],
|
||||||
"Remove all mappings" + modeDescription,
|
"Remove all mappings" + modeDescription,
|
||||||
function ()
|
function () { modes.forEach(function (mode) { mappings.removeAll(mode); }); },
|
||||||
{
|
|
||||||
for (let i = 0; i < modes.length; i++)
|
|
||||||
mappings.removeAll(modes[i]);
|
|
||||||
},
|
|
||||||
{ argCount: "0" });
|
{ argCount: "0" });
|
||||||
|
|
||||||
commands.add([ch + "unm[ap]"],
|
commands.add([ch + "unm[ap]"],
|
||||||
|
|||||||
Reference in New Issue
Block a user