1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 00:07:58 +01:00
--HG--
branch : groups
This commit is contained in:
Kris Maglione
2011-02-07 20:39:13 -05:00
parent e9a18c1a5a
commit 4b4925fdaa
2 changed files with 8 additions and 3 deletions

View File

@@ -986,7 +986,9 @@ var CommandLine = Module("commandline", {
dactyl.registerObserver("events.doneFeeding", this.closure.onDoneFeeding, true); dactyl.registerObserver("events.doneFeeding", this.closure.onDoneFeeding, true);
this.autocompleteTimer = Timer(200, 500, function autocompleteTell(tabPressed) { this.autocompleteTimer = Timer(200, 500, function autocompleteTell(tabPressed) {
if (!events.feedingKeys && options["autocomplete"].length) { if (events.feedingKeys)
this.ignoredCount++;
if (options["autocomplete"].length) {
this.complete(true, false); this.complete(true, false);
this.itemList.visible = true; this.itemList.visible = true;
} }
@@ -1004,8 +1006,11 @@ var CommandLine = Module("commandline", {
this.itemList.visible = false; this.itemList.visible = false;
}, },
ignoredCount: 0,
onDoneFeeding: function onDoneFeeding() { onDoneFeeding: function onDoneFeeding() {
if (this.ignoredCount)
this.autocompleteTimer.flush(true); this.autocompleteTimer.flush(true);
this.ignoredCount = 0;
}, },
UP: {}, UP: {},

View File

@@ -1105,7 +1105,7 @@ var Events = Module("events", {
// Hack to deal with <BS> and so forth not dispatching input // Hack to deal with <BS> and so forth not dispatching input
// events // events
if (event.originalTarget instanceof HTMLInputElement && !modes.main.passthrough) { if (key && event.originalTarget instanceof HTMLInputElement && !modes.main.passthrough) {
let elem = event.originalTarget; let elem = event.originalTarget;
elem.dactylKeyPress = elem.value; elem.dactylKeyPress = elem.value;
util.timeout(function () { util.timeout(function () {