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

Keyboard Event Which is Depreciated #300

Merged
merged 6 commits into from
Nov 18, 2020
Merged

Keyboard Event Which is Depreciated #300

merged 6 commits into from
Nov 18, 2020

Conversation

GeorgeWL
Copy link
Contributor

https://caniuse.com/keyboardevent-which

Though it's usable, it's been depreciated for a while, so is bad practice to use.

Copy link
Contributor

@joris-rotteveel joris-rotteveel left a comment

Choose a reason for hiding this comment

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

Not sure ESCAPE will ever hold the value Esc

src/helpers/keycodes.ts Outdated Show resolved Hide resolved
@GeorgeWL
Copy link
Contributor Author

GeorgeWL commented Nov 16, 2020

Not sure ESCAPE will ever hold the value Esc

ie11 specifically does. It's a piece of non-compat in the Internet Explorer spec.

image

src/helpers/keycodes.ts Outdated Show resolved Hide resolved
src/helpers/keycodes.ts Outdated Show resolved Hide resolved
@joris-rotteveel
Copy link
Contributor

@GeorgeWL Thanks for your contribution!

@joris-rotteveel joris-rotteveel merged commit 6c3bf6b into springload:master Nov 18, 2020
@joris-rotteveel
Copy link
Contributor

@GeorgeWL have merged but noticed our tests were failing. The correct value for the SPACE key should be either or spacebar, check https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key/Key_Values for details

@GeorgeWL GeorgeWL deleted the patch-1 branch November 18, 2020 15:59
@GeorgeWL
Copy link
Contributor Author

ah darn it, i can make a new pr to fix if you like, unless you already have fixed that?

@joris-rotteveel
Copy link
Contributor

I have fixed it on our end, but because you mentioned you copied it from another of your projects I thought you might wanted to know. Thanks again for your work!

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.

3 participants