jaywcjlove / hotkeys-js

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

[Bug] Keypress 'alt+a' is not working #318

Open harish-aka-shivi opened 3 years ago

harish-aka-shivi commented 3 years ago

Issue

I am working with react-hotkeys-hook and found a bug that alt+a is not working. I then tried on the hotkeys-js website and I can confirm that it's not working here also.

Behaviour:

On pressing alt+a, it only captures alt press and A press is lost.

Environment

Machine: MacOS (10.15.2 ) Browser: Google Chrome (92.0.4515.159)

gingray commented 3 years ago

@harish-aka-shivi have the same problem

harish-aka-shivi commented 3 years ago

@gingray, turns out, the browser doesn't emit the keypress code of alt+A. So it's not an issue for this library.