forked from tgstation/tgstation
-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes Using 'ESC' Key To Unbind Keybindings + Adds Function to Check …
…It Elsewhere (tgstation#83710) ## About The Pull Request Consequence of tgstation#80335 (d3554b3)  Likely some weird IE shit, we get "Esc" instead of "Escape". I added it as a function so this is a bit hardier to potentially breaking so it doesn't go haywire silently again when we migrate to Webview2. It's also likely that a weird combo of OS and IE and BYOND Version and whatever will spit out "Esc" instead of "Escape", so let's just have a helper function to access both so we don't have to worry about it any more. ✅: Works on my machine ## Why It's Good For The Game Players should be allowed to unbind whatever keys they want, regressions are bad. New helper function that can check both cases (since we're unsure of why either case pops up and it's unlikely that we have control over it) was implemented in every spot where we were checking `KEY.Escape` in this PR as well. ## Changelog :cl: fix: Using the 'ESC' key on your keyboard to unbind a key in the keybindings preferences menu should now work as expected. This should also be fixed for people in a variety of other spots too. /:cl: My javascript is a bit bad let me know if I'm doing something wack
- Loading branch information
Showing
12 changed files
with
53 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters