1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-24 08:22:28 +01:00

Fix rapid succession <Tab><Tab> when busy. Don't wait for all contexts to complete when processing <Tab>

This commit is contained in:
Kris Maglione
2009-01-06 23:12:51 -05:00
parent 3116c16d54
commit 102605556d
4 changed files with 40 additions and 19 deletions

View File

@@ -155,7 +155,9 @@ function CompletionContext(editor, name, offset) //{{{
/**
* @property {Object} A map of all contexts, keyed on their names.
* Names are assigned when a context is forked, with its specified
* name appended, after a '/', to its parent's name.
* name appended, after a '/', to its parent's name. May
* contain inactive contexts. For active contexts, see
* {@link #contextList}.
*/
this.contexts = { "/": this };
/**
@@ -638,6 +640,11 @@ CompletionContext.prototype = {
for (let type in this.selectionTypes)
this.highlight(0, 0, type);
/**
* @property {[CompletionContext]} A list of active
* completion contexts, in the order in which they were
* instantiated.
*/
this.contextList = [];
this.offset = 0;
this.process = [];