|
|
@ -67,13 +67,16 @@ BI.SelectPatchEditor = BI.inherit(BI.Widget, { |
|
|
|
|
|
|
|
|
|
|
|
_dealChange: function (type, v) { |
|
|
|
_dealChange: function (type, v) { |
|
|
|
var value = ""; |
|
|
|
var value = ""; |
|
|
|
|
|
|
|
if (v !== this.editor.getValue()) { |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
if (BI.isKey(v)) { |
|
|
|
if (BI.isKey(v)) { |
|
|
|
value = this._formatText(v); |
|
|
|
value = this._formatText(v); |
|
|
|
} |
|
|
|
} |
|
|
|
if (type === BI.Events.CHANGE) { |
|
|
|
if (type === BI.Events.CHANGE) { |
|
|
|
this._setValue(value); |
|
|
|
this._setValue(value); |
|
|
|
if (this._trimValue(value) !== "") { |
|
|
|
if (this._trimValue(value) !== "") { |
|
|
|
if (!this._start || !BI.isKey(this._lastValue) || (this._pause === true && !/\u200b\s\u200b$/.test(this.getValue()))) { |
|
|
|
if (!this._start || !BI.isKey(this._lastValue) || (this._pause === true && this._trimValue(this._lastValue) !== this._trimValue(value))) { |
|
|
|
this._start = true; |
|
|
|
this._start = true; |
|
|
|
this._pause = false; |
|
|
|
this._pause = false; |
|
|
|
this.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.STARTEDIT, this.getValue(), this); |
|
|
|
this.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.STARTEDIT, this.getValue(), this); |
|
|
|