mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-05 00:15:49 +01:00
Fix the completion list popping up after the command line closes in corner cases.
This commit is contained in:
@@ -225,7 +225,7 @@ const CommandLine = Module("commandline", {
|
|||||||
/////////////////////////////////////////////////////////////////////////////{{{
|
/////////////////////////////////////////////////////////////////////////////{{{
|
||||||
|
|
||||||
this._autocompleteTimer = Timer(200, 500, function autocompleteTell(tabPressed) {
|
this._autocompleteTimer = Timer(200, 500, function autocompleteTell(tabPressed) {
|
||||||
dactyl.trapErrors(function () {
|
dactyl.trapErrors(function _autocompleteTell() {
|
||||||
if (!events.feedingKeys && self._completions && options["autocomplete"].length) {
|
if (!events.feedingKeys && self._completions && options["autocomplete"].length) {
|
||||||
self._completions.complete(true, false);
|
self._completions.complete(true, false);
|
||||||
if (self._completions)
|
if (self._completions)
|
||||||
@@ -492,6 +492,8 @@ const CommandLine = Module("commandline", {
|
|||||||
},
|
},
|
||||||
|
|
||||||
currentExtendedMode: Modes.boundProperty(),
|
currentExtendedMode: Modes.boundProperty(),
|
||||||
|
_completions: Modes.boundProperty(),
|
||||||
|
_history: Modes.boundProperty(),
|
||||||
_lastClearable: Modes.boundProperty(),
|
_lastClearable: Modes.boundProperty(),
|
||||||
_keepCommand: Modes.boundProperty(),
|
_keepCommand: Modes.boundProperty(),
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user