Keyup event does not fire when backspace(delete) key press

I need to get the value of the numeric input field everytime the key is pressed. I used ng-keyup to do so and it works fine. However, when I press the backspace or delete key in android keyboard, the event does not fire at all.

Is there any other key events to get the value as keyup and it works with the backspace or delete key?

I used ionic version 1.7.14 and I tested on android version 4.4.4.

Even I am facing the same issue.

I change from ng-keyup to ng-change. And it works like a charm. Hope it helps you too.

1 Like

Ionic uses an event called (input) for all it’s ngModel dom change detection. So try the event called --> input
E.g …in Ionic2

              <ion-label color="primaryAdmin" stacked>Amount
                ( Balance : {{accountBalanceAfterDeduct}})
              <ion-input type="number" formControlName="amount" placeholder="E.g. 200000" (input)="getBalance()"></ion-input>