Skip to content
This repository was archived by the owner on Feb 16, 2026. It is now read-only.

Use keyCode instead of key#211

Merged
taion merged 1 commit into
masterfrom
keyCode
Oct 6, 2017
Merged

Use keyCode instead of key#211
taion merged 1 commit into
masterfrom
keyCode

Conversation

@taion

@taion taion commented Oct 6, 2017

Copy link
Copy Markdown
Member

Fixes #210

Sorry @jeffredodd!

@jquense

jquense commented Oct 6, 2017

Copy link
Copy Markdown
Member

@taion

taion commented Oct 6, 2017

Copy link
Copy Markdown
Member Author

It does, but this is the document keydown event, so it's not going through React.

@jquense

jquense commented Oct 6, 2017

Copy link
Copy Markdown
Member

ooo

@taion
taion merged commit 11276b9 into master Oct 6, 2017
@taion
taion deleted the keyCode branch October 6, 2017 16:12
taion added a commit that referenced this pull request Oct 6, 2017
@jeffredodd

Copy link
Copy Markdown
Contributor

Haha @taion I knew something was weird about using key! Now we all know! 😄

@taion

taion commented Oct 6, 2017

Copy link
Copy Markdown
Member Author

It would be the correct thing if it were a React event, I think, since React normalizes key, plus keyCode is deprecated, but I think this is the best option for handler a browser event for now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants