New issue
Advanced search Search tips

Issue 914806 link

Starred by 1 user

Issue metadata

Status: Assigned
Owner:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug



Sign in to add a comment

KeyboardEvent.shiftKey is always false for both on-screen soft keyboard and emulator hard keybord interaction

Reported by bobbitdi...@gmail.com, Dec 13

Issue description

Steps 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.
 
Slight fix to CSS of sample.
noshift.html
738 bytes View Download
Components: Blink>Input
Owner: lanwei@chromium.org
Status: Assigned (was: Unconfirmed)

Sign in to add a comment