Bug 191721 - Shift-Esc, or CapsLock-Esc, dispatches excessive keydown events
Summary: Shift-Esc, or CapsLock-Esc, dispatches excessive keydown events
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: UI Events (show other bugs)
Version: Safari Technology Preview
Hardware: Mac macOS 10.14
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-15 15:30 PST by Ivan Reese
Modified: 2018-11-17 17:49 PST (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Reese 2018-11-15 15:30:24 PST
1) Navigate to about:blank
2) Open the console
3) run: window.addEventListener("keydown", function(e) { console.log(e)})
4) Compare the number of events fired when using Esc on its own versus Shift-Esc or Esc while CapsLock is on

On one of my sites, I get double Esc events when doing Shift/Caps-Esc. On about:blank, I get hundreds of extra events per frame.

Firefox and Chrome don't exhibit this behaviour — they generate one event per key press (ignoring, of course, key repeat).

Also had a friend repro this on a different machine, same issue.

Affects current release of Safari (12.0.1, 14606.104.1.1) and Safari TP (r70, 12.1, 14607.1.13). Couldn't get WK nightly to launch, so I can't check there.

Thanks for all your hard word, WebKit team!