Browse Source

bugfix: 快捷键

es6
guy 3 years ago
parent
commit
67260e3fb5
  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