mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-13 06:15:46 +01:00
use args.literalArg rather than args.string in :emenu action
This commit is contained in:
@@ -257,7 +257,7 @@ const liberator = (function () //{{{
|
|||||||
"Execute the specified menu item from the command line",
|
"Execute the specified menu item from the command line",
|
||||||
function (args)
|
function (args)
|
||||||
{
|
{
|
||||||
args = args.string;
|
args = args.literalArg;
|
||||||
let items = getMenuItems();
|
let items = getMenuItems();
|
||||||
|
|
||||||
if (!items.some(function (i) i.fullMenuPath == args))
|
if (!items.some(function (i) i.fullMenuPath == args))
|
||||||
@@ -266,7 +266,7 @@ const liberator = (function () //{{{
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (let [i, item] in Iterator(items))
|
for (let [,item] in Iterator(items))
|
||||||
{
|
{
|
||||||
if (item.fullMenuPath == args)
|
if (item.fullMenuPath == args)
|
||||||
item.doCommand();
|
item.doCommand();
|
||||||
|
|||||||
Reference in New Issue
Block a user