KeyboardEvent.shiftKey is always false for both on-screen soft keyboard and emulator hard keybord interaction
Reported by
bobbitdi...@gmail.com,
Dec 13
|
|||
Issue descriptionSteps to reproduce the problem: 1. Open noshift.html in Chrome 70 on Android 8.1 2. Touch into the green box to raise the soft keyboard 3. Type characters, such as "a" or "Enter" (arrow at bottom right of soft keyboard). Now try same but make sure to press shift key before typing a character. 4. Observe that event properties shown in blue box always show shiftKey is false What is the expected behavior? Expected behavior should be like Chrome on desktop, or Safari on iPhone/iPad, where shiftKey correctly reports whether the shift key is engaged. What went wrong? KeyboardEvent.shiftKey is always false, so I can't determine, for example, when "Enter" keyDown or keyPress fires, whether the shift key is down or not. Did this work before? N/A Does this work in other browsers? N/A Chrome version: 70.0.3538.64 Channel: n/a OS Version: 8.1 Flash Version: Please note, there are other KeyboardEvent-related problems you can see from the event report in the blue box, and from tinkering with the sample code, that I will have to file separate bug reports for. These include: - keyCode is wrong for most visible characters (always == 229) as compared with Chrome on desktop, though keyCode is valid for a few special keys like "Enter" and arrow keys. - I don't get keyPress events for most keys on Chrome for Android, unlike desktop Chrome. That's why the sample code targets keyDown. I do get a keyPress for "Enter" but shiftKey is still wrong even for this.
,
Dec 13
,
Dec 13
|
|||
►
Sign in to add a comment |
|||
Comment 1 by bobbitdi...@gmail.com
, Dec 13738 bytes
738 bytes View Download