diff --git a/src/app/components/inputnumber/inputnumber.ts b/src/app/components/inputnumber/inputnumber.ts index 4c1212b833f..29039ba6e05 100644 --- a/src/app/components/inputnumber/inputnumber.ts +++ b/src/app/components/inputnumber/inputnumber.ts @@ -832,7 +832,7 @@ export class InputNumber implements OnInit, AfterContentInit, OnChanges, Control event.preventDefault(); } - switch (event.code) { + switch (event.key) { case 'ArrowUp': this.spin(event, 1); event.preventDefault();