Bug 279030 - Escape key does not fire keyup when exiting fullscreen
Summary: Escape key does not fire keyup when exiting fullscreen
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: UI Events (show other bugs)
Version: Safari 17
Hardware: Mac (Apple Silicon) macOS 14
: P2 Normal
Assignee: Abrar Rahman Protyasha
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2024-09-02 11:35 PDT by bitbof
Modified: 2024-09-09 11:36 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bitbof 2024-09-02 11:35:32 PDT
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
Comment 1 Alexey Proskuryakov 2024-09-02 11:52:50 PDT
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?
Comment 2 bitbof 2024-09-02 12:46:18 PDT
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.
Comment 3 Radar WebKit Bug Importer 2024-09-09 11:36:15 PDT
<rdar://problem/135564636>