Commit 449c9e78f3ae4f04514e4a849eeea5cc63884e09
Committed by
GitHub
Merge pull request #1331 from rijn/1318
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(); | ... | ... |