1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-21 21:47:59 +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);
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.itemList.visible = true;
}
@@ -1004,8 +1006,11 @@ var CommandLine = Module("commandline", {
this.itemList.visible = false;
},
ignoredCount: 0,
onDoneFeeding: function onDoneFeeding() {
if (this.ignoredCount)
this.autocompleteTimer.flush(true);
this.ignoredCount = 0;
},
UP: {},

View File

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