mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-25 00:35:46 +01:00
Show function prototype in :js completion even when waiting on key press.
This commit is contained in:
@@ -592,8 +592,10 @@ var JavaScript = Module("javascript", {
|
|||||||
|
|
||||||
// Wait for a keypress before completing when there's no key
|
// Wait for a keypress before completing when there's no key
|
||||||
if (!this.context.tabPressed && key == "" && obj.length > 1) {
|
if (!this.context.tabPressed && key == "" && obj.length > 1) {
|
||||||
|
let message = this.context.message || "";
|
||||||
this.context.waitingForTab = true;
|
this.context.waitingForTab = true;
|
||||||
this.context.message = _("completion.waitingForKeyPress");
|
this.context.message = <>{message}
|
||||||
|
{_("completion.waitingForKeyPress")}</>;
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user