Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: prevent the escape key from minimizing Safari #265

Merged
merged 2 commits into from
Dec 3, 2022

Conversation

piofinn
Copy link
Contributor

@piofinn piofinn commented Dec 2, 2022

Safari uses the escape key as a shortcut for exiting full screen. Stopping propagation is not enough to prevent this behaviour. Use preventDefault instead of in addition to stopPropagation to avoid messing with the users' browser experience.

Closes: #264

Safari uses the escape key as a shortcut for exiting full screen.
Stopping propagation is _not_ enough to prevent this behaviour. Use
`preventDefault` instead of `stopPropagation` to avoid messing with the
users' browser experience.

Closes: timc1#264
@vercel
Copy link

vercel bot commented Dec 2, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
kbar ✅ Ready (Inspect) Visit Preview Dec 2, 2022 at 10:50PM (UTC)

@timc1 timc1 merged commit 6721467 into timc1:main Dec 3, 2022
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.

Safari exits full screen when closing the menu using the escape key
2 participants