fix bug that it cannot input number in Page by right side keyboard

This commit is contained in:
Rijn 2017-07-11 11:29:51 -05:00
parent a68c11a565
commit 8e9874fd33

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();