mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-07 11:04:25 +01:00
Fix history search issue introduced by revision 2da9a800c618.
This commit is contained in:
@@ -912,7 +912,7 @@ var CommandLine = Module("commandline", {
|
|||||||
* @param {string} val The new value.
|
* @param {string} val The new value.
|
||||||
*/
|
*/
|
||||||
replace: function replace(val) {
|
replace: function replace(val) {
|
||||||
delete this.input.dactylKeyPress;
|
this.input.dactylKeyPress = undefined;
|
||||||
if (this.completions)
|
if (this.completions)
|
||||||
this.completions.previewClear();
|
this.completions.previewClear();
|
||||||
this.input.value = val;
|
this.input.value = val;
|
||||||
@@ -1031,7 +1031,7 @@ var CommandLine = Module("commandline", {
|
|||||||
this.caret = this.prefix.length + completion.length;
|
this.caret = this.prefix.length + completion.length;
|
||||||
this._caret = this.caret;
|
this._caret = this.caret;
|
||||||
|
|
||||||
delete this.input.dactylKeyPress;
|
this.input.dactylKeyPress = undefined;
|
||||||
},
|
},
|
||||||
|
|
||||||
get caret() this.editor.selection.getRangeAt(0).startOffset,
|
get caret() this.editor.selection.getRangeAt(0).startOffset,
|
||||||
|
|||||||
@@ -1026,7 +1026,7 @@ var Events = Module("events", {
|
|||||||
let elem = event.originalTarget;
|
let elem = event.originalTarget;
|
||||||
elem.dactylKeyPress = elem.value;
|
elem.dactylKeyPress = elem.value;
|
||||||
util.timeout(function () {
|
util.timeout(function () {
|
||||||
if (elem.value !== elem.dactylKeyPress)
|
if (elem.dactylKeyPress !== undefined && elem.value !== elem.dactylKeyPress)
|
||||||
events.dispatch(elem, events.create(elem.ownerDocument, "input"));
|
events.dispatch(elem, events.create(elem.ownerDocument, "input"));
|
||||||
delete events.dactylKeyPress;
|
delete events.dactylKeyPress;
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user