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

Replace KeyboardEvent.keyKeyboardEvent.code wherever possible #346

Merged
merged 1 commit into from
Aug 13, 2023

Conversation

netux
Copy link
Contributor

@netux netux commented Aug 13, 2023

Turns out .key returns the text the user would have typed on a text input.

For example, if the user was pressing Shift + S, then .key would be "S". If the user wasn't pressing Shift, then .key would be "s".

This makes the Compile keybind work again.

…ible

Turns out .key returns the actual key the user would have sent on an input.
This means if the user was pressing shift + S, then `.key` would be `"S"`. If the user wasn't pressing Shift, then `.key` would be `"s"`.

Makes the compile keybind work again.
Copy link
Owner

@Mitcheljager Mitcheljager left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh, I hadn't noticed. good catch

@Mitcheljager Mitcheljager merged commit 13503b5 into Mitcheljager:master Aug 13, 2023
5 of 6 checks passed
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.

2 participants