Debug input to fonts combobox (fast input).
This commit is contained in:
parent
c2f4b4917e
commit
705c578bad
|
@ -158,7 +158,12 @@ define([
|
||||||
this.selectCandidate(e.keyCode == Common.UI.Keys.DELETE || e.keyCode == Common.UI.Keys.BACKSPACE);
|
this.selectCandidate(e.keyCode == Common.UI.Keys.DELETE || e.keyCode == Common.UI.Keys.BACKSPACE);
|
||||||
if (this._selectedItem) {
|
if (this._selectedItem) {
|
||||||
var me = this;
|
var me = this;
|
||||||
setTimeout(function() {
|
if (me._timerSelection===undefined)
|
||||||
|
me._timerSelection = setInterval(function(){
|
||||||
|
if ((new Date()) - me._inInputKeyDown<100 || !me._selectedItem) return;
|
||||||
|
|
||||||
|
clearInterval(me._timerSelection);
|
||||||
|
me._timerSelection = undefined;
|
||||||
var input = me._input[0],
|
var input = me._input[0],
|
||||||
text = me._selectedItem.get(me.displayField),
|
text = me._selectedItem.get(me.displayField),
|
||||||
inputVal = input.value;
|
inputVal = input.value;
|
||||||
|
@ -177,6 +182,7 @@ define([
|
||||||
},
|
},
|
||||||
|
|
||||||
onInputKeyDown: function(e) {
|
onInputKeyDown: function(e) {
|
||||||
|
this._inInputKeyDown = (new Date());
|
||||||
var me = this;
|
var me = this;
|
||||||
|
|
||||||
if (e.keyCode == Common.UI.Keys.ESC){
|
if (e.keyCode == Common.UI.Keys.ESC){
|
||||||
|
|
Loading…
Reference in a new issue