Merge pull request #1331 from rijn/1318

fix bug that it cannot input number in Page by right side keyboard
This commit is contained in:
Aresn 2017-07-12 10:32:12 +08:00 committed by GitHub
commit 449c9e78f3

View file

@ -251,7 +251,7 @@
},
keyDown (e) {
const key = e.keyCode;
const condition = (key >= 48 && key <= 57) || key == 8 || key == 37 || key == 39;
const condition = (key >= 48 && key <= 57) || (key >= 96 && key <= 105) || key == 8 || key == 37 || key == 39;
if (!condition) {
e.preventDefault();