Bug 191721
Summary: | Shift-Esc, or CapsLock-Esc, dispatches excessive keydown events | ||
---|---|---|---|
Product: | WebKit | Reporter: | Ivan Reese <ivanreese> |
Component: | UI Events | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Normal | CC: | ap, dbates, megan_gardner, pvollan, simon.fraser, wenson_hsieh |
Priority: | P2 | ||
Version: | Safari Technology Preview | ||
Hardware: | Mac | ||
OS: | macOS 10.14 |
Ivan Reese
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!
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |