We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Referring: https://caniuse.com/#feat=keyboardevent-code, IE lack keyboardevent-code support yet.
Solution - tried using: let code1 = ''; if (!event.code) { if (event.keyCode) { if (event.keyCode === 40) { code1 = 'ArrowDown'; } else if (event.keyCode === 38) { code1 = 'ArrowUp'; } } } else { code1 = event.code; }
So need fixes or if poly-fill can be used. Please let me know, if I can raise a PR for the same.
The text was updated successfully, but these errors were encountered:
I found out this polyfill here helps: https://github.com/inexorabletash/polyfill/blob/master/keyboard.md
Sorry, something went wrong.
No branches or pull requests
Referring: https://caniuse.com/#feat=keyboardevent-code, IE lack keyboardevent-code support yet.
Solution -
tried using:
let code1 = '';
if (!event.code) {
if (event.keyCode) {
if (event.keyCode === 40) {
code1 = 'ArrowDown';
} else if (event.keyCode === 38) {
code1 = 'ArrowUp';
}
}
} else {
code1 = event.code;
}
So need fixes or if poly-fill can be used. Please let me know, if I can raise a PR for the same.
The text was updated successfully, but these errors were encountered: