Skip to content

fix: prevent default on Escape key when closing overlay#11090

Draft
Artur- wants to merge 2 commits intomainfrom
claude/fix-escape-dialog-macos-N01Lu
Draft

fix: prevent default on Escape key when closing overlay#11090
Artur- wants to merge 2 commits intomainfrom
claude/fix-escape-dialog-macos-N01Lu

Conversation

@Artur-
Copy link
Copy Markdown
Member

@Artur- Artur- commented Feb 9, 2026

On macOS, pressing Escape in a fullscreened browser window causes the
browser to exit fullscreen mode. When an overlay (e.g., dialog) closes
on Escape, the key event should be consumed by calling preventDefault()
to prevent the browser from also handling it.

https://claude.ai/code/session_01CsvF5ewbUGirKySHMfzdRp

On macOS, pressing Escape in a fullscreened browser window causes the
browser to exit fullscreen mode. When an overlay (e.g., dialog) closes
on Escape, the key event should be consumed by calling preventDefault()
to prevent the browser from also handling it.

https://claude.ai/code/session_01CsvF5ewbUGirKySHMfzdRp
@Artur- Artur- marked this pull request as draft February 9, 2026 17:20
Verify that the Escape keydown event has its default prevented when
the overlay closes, and that it is not prevented when the
vaadin-overlay-escape-press event is cancelled.

https://claude.ai/code/session_01CsvF5ewbUGirKySHMfzdRp
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Feb 9, 2026

@yuriy-fix
Copy link
Copy Markdown
Contributor

This might affect behaviour of other components / shortcuts, need to be verified.
@Artur- , would you like to proceed with the change and mark it ready for review or there is anything you would like to adjust in the PR or have a discussion about?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants