Browse Source

tab键不隐藏

es6
qcc 6 years ago
parent
commit
20504c71ad
  1. 4
      dist/base.js
  2. 4
      src/base/single/editor/editor.js

4
dist/base.js vendored

@ -8492,7 +8492,9 @@ BI.Editor = BI.inherit(BI.Single, {
}); });
this.editor.on(BI.Input.EVENT_QUICK_DOWN, function (e) { this.editor.on(BI.Input.EVENT_QUICK_DOWN, function (e) {
// tab键就不要隐藏了 // tab键就不要隐藏了
self.watermark && e.keyCode !== 9 && self.watermark.invisible(); if (e.keyCode !== BI.KeyCode.TAB && self.watermark) {
self.watermark.invisible();
}
}); });
this.editor.on(BI.Input.EVENT_VALID, function () { this.editor.on(BI.Input.EVENT_VALID, function () {

4
src/base/single/editor/editor.js

@ -122,7 +122,9 @@ BI.Editor = BI.inherit(BI.Single, {
}); });
this.editor.on(BI.Input.EVENT_QUICK_DOWN, function (e) { this.editor.on(BI.Input.EVENT_QUICK_DOWN, function (e) {
// tab键就不要隐藏了 // tab键就不要隐藏了
self.watermark && e.keyCode !== 9 && self.watermark.invisible(); if (e.keyCode !== BI.KeyCode.TAB && self.watermark) {
self.watermark.invisible();
}
}); });
this.editor.on(BI.Input.EVENT_VALID, function () { this.editor.on(BI.Input.EVENT_VALID, function () {

Loading…
Cancel
Save