Skip to content

Commit

Permalink
fix: listen numpad keys (vueuse#201)
Browse files Browse the repository at this point in the history
  • Loading branch information
sibbng committed Nov 11, 2020
1 parent 55adca0 commit 30b69bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/onStartTyping/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const isTypedCharGood = ({
return false

// 0...9
if (keyCode >= 48 && keyCode <= 57)
if ((keyCode >= 48 && keyCode <= 57) || (keyCode >= 96 && keyCode <= 105))
return true

// a...z
Expand Down

0 comments on commit 30b69bb

Please sign in to comment.