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 escape key for IE #1053

Merged
merged 1 commit into from
Feb 22, 2019
Merged

Fix escape key for IE #1053

merged 1 commit into from
Feb 22, 2019

Conversation

annarieger
Copy link
Member

BUGFIX

Description:

Tiny fix to ensure that Escape key will also be matched while using IE.

Please review @terrestris/devs

@marcjansen
Copy link
Member

How about using evt.keyCode? It feels as if this is better for cross browser compatibility, I have no proof though.

https://keycode.info/ & https://developer.mozilla.org/de/docs/Web/API/KeyboardEvent/keyCode have insides, can be tested in the various browsers.

Copy link
Member

@hwbllmnn hwbllmnn left a comment

Choose a reason for hiding this comment

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

@annarieger
Copy link
Member Author

annarieger commented Feb 22, 2019

@annarieger annarieger merged commit 9712aa4 into terrestris:master Feb 22, 2019
@annarieger annarieger deleted the fix-esc-key branch February 22, 2019 12:18
@marcjansen
Copy link
Member

Fine for me, even though support for key isn't so great as well: https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key#Browser_compatibility

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.

None yet

3 participants