Bug 279030
| Summary: | Escape key does not fire keyup when exiting fullscreen | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | bitbof |
| Component: | UI Events | Assignee: | Abrar Rahman Protyasha <a_protyasha> |
| Status: | NEW | ||
| Severity: | Normal | CC: | ap, jer.noble, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari 17 | ||
| Hardware: | Mac (Apple Silicon) | ||
| OS: | macOS 14 | ||
bitbof
Steps to reproduce:
- On macOS, in Safari, open a webpage with window.addEventListener('keydown', ...) and window.addEventListener('keyup', ...)
- "Enter Full Screen" - via green window button or Ctrl + Cmd + F
- Press the escape key
Can also be tried with the logger here: https://bitbof.github.io/browser-bug-demos/2024-09-02-safari-mac-escape-key/
Actual results:
Does not fire keyup for escape key
Expected results:
Fires keydown and keyup for escape key
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Alexey Proskuryakov
Thank you for the report. This seems like a rather extreme edge case, could you please add some color around whether this is important for you and your users?
bitbof
It breaks keyboard shortcuts in my app (it does happen to users), but there workarounds, and I can imagine a more robust implementation for keyboard shortcuts on my end. It would have been less confusing, but it's not that important.
Radar WebKit Bug Importer
<rdar://problem/135564636>