我正在使用按键事件来限制输入中的特殊字符。 lollipop 及更高版本运行良好,但在 Android 4.4.2 中不起作用。
请为此提出建议。
谢谢。
我在 Ionic 中也遇到了关于按键(和按键)事件的问题。
离子 v 3.12
<!-- Works in the desktop browser, but onPhoneChange() is never called on the Android device. -->
<ion-input type="text" (keypress)="onPhoneChange($event)" required></ion-input>
这事有进一步更新吗
最有用的评论
我在 Ionic 中也遇到了关于按键(和按键)事件的问题。
离子 v 3.12
<!-- Works in the desktop browser, but onPhoneChange() is never called on the Android device. -->
<ion-input type="text" (keypress)="onPhoneChange($event)" required></ion-input>