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(hotkeys): escape closes sheet when input has focus #10478

Merged
merged 3 commits into from
Jun 1, 2024

Conversation

liamdebeasi
Copy link
Contributor

resolves #6246

Pressing "Escape" when a sheet is open should close the sheet. However, DIM currently has logic that blocks all hotkeys from processing when a form control (input, textarea, select, etc) is focused. As a result, if an input is focused inside of a sheet, pressing "Escape" will not close the sheet.

This PR fixes the issue by adding a list of keys that should be allowed to be processed as hotkeys even when a form control is focused.

@liamdebeasi liamdebeasi marked this pull request as ready for review May 31, 2024 02:38
@bhollis bhollis merged commit 037940a into DestinyItemManager:master Jun 1, 2024
6 checks passed
@bhollis
Copy link
Contributor

bhollis commented Jun 1, 2024

Thanks!

@liamdebeasi liamdebeasi deleted the ld/loadout-esc branch June 1, 2024 19:23
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.

Compare sheet won't close on esc if input focused
2 participants