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
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?
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.
<rdar://problem/135564636>