Commit 8e9874fd3350681088371f44ab20b1c3ad45bff2
1 parent
a68c11a5
fix bug that it cannot input number in Page by right side keyboard
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/components/page/page.vue
| ... | ... | @@ -251,7 +251,7 @@ |
| 251 | 251 | }, |
| 252 | 252 | keyDown (e) { |
| 253 | 253 | const key = e.keyCode; |
| 254 | - const condition = (key >= 48 && key <= 57) || key == 8 || key == 37 || key == 39; | |
| 254 | + const condition = (key >= 48 && key <= 57) || (key >= 96 && key <= 105) || key == 8 || key == 37 || key == 39; | |
| 255 | 255 | |
| 256 | 256 | if (!condition) { |
| 257 | 257 | e.preventDefault(); | ... | ... |