|
|
@ -24,7 +24,7 @@ BI.Input = BI.inherit(BI.Single, { |
|
|
|
var _keydown = BI.debounce(function (keyCode) { |
|
|
|
var _keydown = BI.debounce(function (keyCode) { |
|
|
|
self.onKeyDown(keyCode, ctrlKey); |
|
|
|
self.onKeyDown(keyCode, ctrlKey); |
|
|
|
self._keydown_ = false; |
|
|
|
self._keydown_ = false; |
|
|
|
}, 300); |
|
|
|
}, BI.EVENT_RESPONSE_TIME); |
|
|
|
var _clk = BI.debounce(BI.bind(this._click, this), BI.EVENT_RESPONSE_TIME, { |
|
|
|
var _clk = BI.debounce(BI.bind(this._click, this), BI.EVENT_RESPONSE_TIME, { |
|
|
|
"leading": true, |
|
|
|
"leading": true, |
|
|
|
"trailing": false |
|
|
|
"trailing": false |
|
|
@ -95,11 +95,7 @@ BI.Input = BI.inherit(BI.Single, { |
|
|
|
|
|
|
|
|
|
|
|
_blur: function () { |
|
|
|
_blur: function () { |
|
|
|
var self = this; |
|
|
|
var self = this; |
|
|
|
if (self._keydown_ === true) { |
|
|
|
blur(); |
|
|
|
BI.delay(blur, 300); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
blur(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function blur () { |
|
|
|
function blur () { |
|
|
|
if (!self.isValid() && self.options.quitChecker.apply(self, [BI.trim(self.getValue())]) !== false) { |
|
|
|
if (!self.isValid() && self.options.quitChecker.apply(self, [BI.trim(self.getValue())]) !== false) { |
|
|
|