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

Unexpected behavior when using the character @ as a key combo #5

Open
tlentz opened this issue Jun 22, 2022 · 1 comment
Open

Unexpected behavior when using the character @ as a key combo #5

tlentz opened this issue Jun 22, 2022 · 1 comment

Comments

@tlentz
Copy link

tlentz commented Jun 22, 2022

Hi,

I ran into some unexpected behavior when trying to match @ as my key combo to fire an event.

I was unable to match on @ or even shift+2, but when I tried shift+@ this key combo was recognized.

Is this expected behavior if someone wants to fire an event when the user types an @ character?

@webNeat
Copy link
Owner

webNeat commented Jun 26, 2022

Hello @tlentz

Yes, this is the expected behavior since in order to type @ you also hold the shift modifier, so the resulting keydown event is shift+@, that's why the key should be shift+@ to match it.

Let me know if that makes sense, I will update the README to explain this behavior because it's a bit confusing.

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

No branches or pull requests

2 participants