Skip to content

Commit

Permalink
fix(onStartTyping): fix char ascii (#2932)
Browse files Browse the repository at this point in the history
  • Loading branch information
meenie-net committed Apr 4, 2023
1 parent 9b8f8be commit e9ab3ad
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/core/onStartTyping/index.ts
Expand Up @@ -34,13 +34,17 @@ function isTypedCharValid({
return false

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

// a...z
// A...Z
if (keyCode >= 65 && keyCode <= 90)
return true

// a...z
if (keyCode >= 97 && keyCode <= 122)
return true

// All other keys.
return false
}
Expand Down

0 comments on commit e9ab3ad

Please sign in to comment.