|
|
|
@ -51,6 +51,13 @@ BI.SelectPatchEditor = BI.inherit(BI.Widget, {
|
|
|
|
|
debounceInputChange(type, v); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
}, { |
|
|
|
|
eventName: BI.Editor.EVENT_KEY_DOWN, |
|
|
|
|
action: function (keyCode) { |
|
|
|
|
if (keyCode === BI.KeyCode.ENTER) { |
|
|
|
|
self._clearSplitValue(); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
}, { |
|
|
|
|
eventName: BI.Editor.EVENT_FOCUS, |
|
|
|
|
action: function () { |
|
|
|
@ -65,7 +72,13 @@ BI.SelectPatchEditor = BI.inherit(BI.Widget, {
|
|
|
|
|
}, o.el); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_clearSplitValue: function () { |
|
|
|
|
console.log(6); |
|
|
|
|
this.editor.setValue(""); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_dealChange: function (type, v) { |
|
|
|
|
console.log(5); |
|
|
|
|
var value = ""; |
|
|
|
|
if (v !== this.editor.getValue()) { |
|
|
|
|
return; |
|
|
|
|