You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 4, 2022. It is now read-only.
For SOFT (touch screen) keyboard ONLY, e.g. <input (keydown)="handler($event)"> keyboard-related events do not fire for Enter (keyCode 13) only. Other keystrokes fire ok.
Enter-key handling on hardware (e.g. desktop browser) vs. soft keyboards is different: Enter on soft keyboard sends focus to next field (like a Tab key), whereas hardware kb does nothing.
What behavior are you expecting?
Expect handler to fire on all keystrokes, regardless of kb type. This is regardless of issue (2).
This one is trickier, more of a policy discussion. Soft keyboard has effectively remapped Enter --> Tab. This, however, leads to inconsistent behavior between platforms. Complicates testing & cross-platform, especially since beta11 release notes say you'll be targeting browsers soon. Seems to me there should be a documented option to map or not, or at least a documented way to trap and prevent the mapping. Regardless, key remapping should be put on the table & documented.
Steps to reproduce:
See code below.
Place cursor in input field.
Enter regular keystrokes. Note that console logs them correctly on all keyboards.
Hit enter.
3a. Soft keyboard: no logging of keystroke, sends focus to following button.
3b. Hardware kb (desktop browser emulator): keystroke logged, no focus change
Original issue by @softhorizons on 2016-08-20T17:24:44Z
Short description of the problem:
Really 2 inter-tangled issues:
What behavior are you expecting?
Steps to reproduce:
See code below.
3a. Soft keyboard: no logging of keystroke, sends focus to following button.
3b. Hardware kb (desktop browser emulator): keystroke logged, no focus change
Which Ionic Version? 2.0 beta11
Plunker that shows an example of your issue
http://plnkr.co/edit/eYkvfr8lGIfmZlZwAzoY?p=preview
The text was updated successfully, but these errors were encountered: