diff --git a/src/app/components/inputotp/inputotp.ts b/src/app/components/inputotp/inputotp.ts index 8b52ecf6c72..521db940778 100644 --- a/src/app/components/inputotp/inputotp.ts +++ b/src/app/components/inputotp/inputotp.ts @@ -284,7 +284,7 @@ export class InputOtp implements AfterContentInit { return; } - switch (event.code) { + switch (event.key) { case 'ArrowLeft': this.moveToPrev(event); event.preventDefault();