mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 15:02:26 +01:00
:macros argCount "1" -> "?"
This commit is contained in:
@@ -716,7 +716,7 @@ function Events() //{{{
|
|||||||
"List all macros",
|
"List all macros",
|
||||||
function (args) { completion.listCompleter("macro", args[0]) },
|
function (args) { completion.listCompleter("macro", args[0]) },
|
||||||
{
|
{
|
||||||
argCount: "1",
|
argCount: "?",
|
||||||
completer: function (context) completion.macro(context),
|
completer: function (context) completion.macro(context),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -830,6 +830,7 @@ const liberator = (function () //{{{
|
|||||||
if (window != ww.activeWindow)
|
if (window != ww.activeWindow)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
let elem = config.mainWidget || window.content;
|
||||||
// TODO: make more generic
|
// TODO: make more generic
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@@ -840,16 +841,15 @@ const liberator = (function () //{{{
|
|||||||
i = 0;
|
i = 0;
|
||||||
gDBView.selection.select(i);
|
gDBView.selection.select(i);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.has("tabs"))
|
||||||
|
{
|
||||||
|
let frame = tabs.localStore.focusedFrame;
|
||||||
|
if (frame && frame.top == window.content)
|
||||||
|
elem = frame;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch (e) {}
|
catch (e) {}
|
||||||
|
|
||||||
let elem = config.mainWidget || window.content;
|
|
||||||
if (this.has("tabs"))
|
|
||||||
{
|
|
||||||
let frame = tabs.localStore.focusedFrame;
|
|
||||||
if (frame && frame.top == window.content)
|
|
||||||
elem = frame;
|
|
||||||
}
|
|
||||||
if (clearFocusedElement && document.commandDispatcher.focusedElement)
|
if (clearFocusedElement && document.commandDispatcher.focusedElement)
|
||||||
document.commandDispatcher.focusedElement.blur();
|
document.commandDispatcher.focusedElement.blur();
|
||||||
if (elem && (elem != document.commandDispatcher.focusedElement))
|
if (elem && (elem != document.commandDispatcher.focusedElement))
|
||||||
|
|||||||
Reference in New Issue
Block a user