Browse Source

Pull request #2485: 无JIRA任务 bugfix: 快捷键

Merge in VISUAL/fineui from ~GUY/fineui:master to master

* commit '96bd3b08811ee17e19e1038e7e739a8ffc36e5db':
  bugfix: 快捷键
es6
guy 3 years ago
parent
commit
64d1346d7c
  1. 2
      src/base/single/button/button.basic.js

2
src/base/single/button/button.basic.js

@ -205,7 +205,7 @@ BI.BasicButton = BI.inherit(BI.Single, {
} }
hand.click(clk); hand.click(clk);
// enter键等同于点击 // enter键等同于点击
hand.keyup(function (e) { o.attributes && o.attributes.zIndex >= 0 && hand.keyup(function (e) {
if (e.keyCode === BI.KeyCode.ENTER) { if (e.keyCode === BI.KeyCode.ENTER) {
clk(e); clk(e);
} }

Loading…
Cancel
Save