Hi,
I have a simple input and a method on the keypress event method, in which I want to print the char inserted.
All works with browser, with iOS simulator (ipad 10.3) and on devices (iphone / ipad 10.3).
But on iOS simulator/device with OS < 10, the event.key is empty. Only keyCode is valued.
I attach some code:
<ion-input type="text" (keypress)="onKeyPressed($event)"></ion-input>
onKeyPressed(event){
console.log(event.key) <---- not valued with iOS 9
console.log(event.keyCode) <---- valued
return true
}
Have you some suggestions to give me?
Thank you