jaywcjlove / hotkeys-js

➷ A robust Javascript library for capturing keyboard input. It has no dependencies.
https://jaywcjlove.github.io/hotkeys-js
MIT License
6.7k stars 411 forks source link

Is there a way to detect AltGr is being pressed #231

Open 1omarsaid opened 4 years ago

1omarsaid commented 4 years ago

Hello Team,

We are currently using this library in our application for keyboard shortcuts, however, we currently have an issue since we use internalization in our app and some of the keys conflict with polish special characters. Here is an example, in the application, we set it so that "Alt +Ctrl + C" goes to the chat section of the app, where also the "right Alt + C" is used for "ç" special characters also triggers the "Alt + Ctrl + C" keyboard shortcut so the special character is never presented. This is occurring for all of our new languages.

In short, there should be a way to detect if "AltGr" is being pressed.

MediaMemphis commented 2 years ago

In my case I try to catch altgr+r, but it fits to the title/topic