New issue
Advanced search Search tips

Issue 700513 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 168726
Owner: ----
Closed: Mar 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

Keyboard Event inconsistency with Shift Key

Reported by miguelan...@gmail.com, Mar 10 2017

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36

Steps to reproduce the problem:
1. Enter to the console "onkeydown=onkeyup=function(e){console.log(e.type,e.code)}"
2. Press and Maintain "ShiftLeft"
3. Press and Maintain "ShiftRight"
4. Release "ShiftLeft"
5. Release "ShiftRight"

What is the expected behavior?
Expected console output:
keydown ShiftLeft
keydown ShiftRight
keyup ShiftLeft
keyup ShiftRight

What went wrong?
Key "ShiftLeft" does not raise a Key Up Event

Actual console output:
keydown ShiftLeft
keydown ShiftRight
keyup ShiftRight

Did this work before? N/A 

Does this work in other browsers? No
 Firefox gives same result as in Chromium.

Edge does can't be tested, no "code" attribute in Keyboard Events.

Chrome version: 56.0.2924.87  Channel: stable
OS Version: 10.0
Flash Version: 

This does work as expected with the "Control" Key.

Steps to reproduce:
1. Enter to the console "onkeydown=onkeyup=function(e){console.log(e.type,e.code)}"
2. Press and Maintain "ControlLeft"
3. Press and Maintain "ControlRight"
4. Release "ControlLeft"
5. Release "ControlRight"

Expected and Actual console output:
keydown ControlLeft
keydown ControlRight
keyup ControlLeft
keyup ControlRight
 
Labels: Needs-Milestone
Mergedinto: 168726
Status: Duplicate (was: Unconfirmed)
This is a problem with the native OS (Windows) doesn't provide us this information. Basically it has a single shift key identifier. We are working at trying to figure out if we can clean this up at the Chromium level so our platforms behave all the same. This works correctly on other OSes just not Windows.

Sign in to add a comment