mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 00:07:58 +01:00
Fix bug.
--HG-- branch : groups
This commit is contained in:
@@ -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: {},
|
||||||
|
|||||||
@@ -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 () {
|
||||||
|
|||||||
Reference in New Issue
Block a user