Skip to content

Commit

Permalink
Fix input-number not accepting numbers using an AZERTY keyboard
Browse files Browse the repository at this point in the history
Apply fix suggested in PR: customd#122
  • Loading branch information
cloutierlp committed Apr 19, 2021
1 parent a502e75 commit 42126f5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jquery.number.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,9 @@
// Allow: home, end, left, right
( (key >= 35 && key <= 39) ) ||
// Allow: F1-F12
( (key >= 112 && key <= 123) )
( (key >= 112 && key <= 123) ) ||
// Allow Shift+number
( (key >= 48 && key <= 57) && ( e.shiftKey ) === true )
){
return;
}
Expand Down

0 comments on commit 42126f5

Please sign in to comment.