-
Notifications
You must be signed in to change notification settings - Fork 3
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
Use KeyboardEvent.key #2
Comments
definitely it's a bug, e.g. on macos/chrome try pressing cmd+] - result is |
It's definitely possible that this should be used. |
I forked this repo and made it into a TypeScript library, and dropped deprecated It is available on npm: {
"dependencies": {
"@rmkane/key-event-to-string": "0.2.3"
}
} Let me know how it works. EditI pushed version
const options = {
keyAliases: {
Meta: '⌘',
Control: '⌃',
Alt: '⌥',
Shift: '⇧',
},
joinWith: '+',
} |
KeyboardEvent.key
will make key-event-to-string's API much closer to the standard KeyboardEvent API.References:
KeyboardEvent.key
The text was updated successfully, but these errors were encountered: