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