Skip to content
This repository has been archived by the owner on Jan 16, 2025. It is now read-only.

Stop propagation of keydown events when full screen is active #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tomasr8
Copy link
Member

@tomasr8 tomasr8 commented Sep 28, 2022

Not very nice, but we need to attach the keydown handler before e.g. SUI's attaches its own
so we can intercept the event and stop propagation if full screen is active.
Otherwise, pressing escape closes the modal as well (potentially losing any unsaved changes).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants