Skip to content

Commit

Permalink
Merge pull request #15141 from qburst/fix-15129
Browse files Browse the repository at this point in the history
Fix: Integer input from numpad
  • Loading branch information
cetincakiroglu authored Mar 22, 2024
2 parents 57d2950 + 3384b6c commit e17bc10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/inputotp/inputotp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ export class InputOtp implements AfterContentInit {
break;

default:
if (this.integerOnly && !(event.keyCode >= 48 && event.keyCode <= 57)) {
if (this.integerOnly && !((event.keyCode >= 48 && event.keyCode <= 57) || (event.keyCode >= 96 && event.keyCode <= 105))) {
event.preventDefault();
}

Expand Down

0 comments on commit e17bc10

Please sign in to comment.