Fixes shortcuts in overlay #3767
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When an overlay is active, there are a few shortcuts that don't work nicely with overlays:
z-index: 99
to ensure it's below the pause element.It is also inconvenient to not have a shortcut for closing the overlay while we're in fullscreen mode; fullscreen mode will close on escape, which is a bit annoying when you want to close the overlay; shortcut "c" has been added to close the overlay.
Fixes #3766
If needed, we could make things more configurable. Also, not sure if there's better a way to leverage existing shortcut class (e.g. to get keyboard configurations).