Bug 199858 - keyup event with ShiftLeft/ShiftRight code sometimes not fired
Summary: keyup event with ShiftLeft/ShiftRight code sometimes not fired
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: Safari Technology Preview
Hardware: Mac macOS 10.14
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2019-07-17 07:38 PDT by Ashley Gullen
Modified: 2019-07-24 12:02 PDT (History)
8 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ashley Gullen 2019-07-17 07:38:37 PDT
Demo: https://www.scirra.com/labs/bugs/leftrightkeys.html

Steps to reproduce:
1. Open URL
2. Press down left shift
3. Press down right shift
4. Release left shift
5. Release right shift

What is the expected behavior?
keyup events should fire for both ShiftLeft and ShiftRight codes

What went wrong?
The keyup event for ShiftLeft is missing. It only fires for ShiftRight.

The same issue happens with control, alt and meta keys.

It works correctly in Chrome and Firefox so this issue is specific to Safari.
Comment 1 Alexey Proskuryakov 2019-07-21 17:00:04 PDT
Indeed, we rely on high level AppKit calls for modifier changes, which aren't executed when the second key is still down. This would be tricky to change while still being a good player in view hierarchy.
Comment 2 Radar WebKit Bug Importer 2019-07-21 17:00:23 PDT
<rdar://problem/53375581>