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

Inconsistency in left/right keydowns #32

Open
ffxsam opened this issue Aug 22, 2016 · 2 comments
Open

Inconsistency in left/right keydowns #32

ffxsam opened this issue Aug 22, 2016 · 2 comments

Comments

@ffxsam
Copy link
Contributor

ffxsam commented Aug 22, 2016

Just wondering, why is it that ctrl/shift/alt don't distinguish between left/right, but the Mac command key does?

@heymath
Copy link

heymath commented Nov 18, 2016

I guess because keycode uses event.keyCode to determine key names, and it seems that cmd left and cmd right have different keyCode, but ctrl left and ctrl right share the same keyCode with an event.location set to 1 or 2 to make the difference :/

@ctf0
Copy link

ctf0 commented Dec 11, 2017

also keydown could give different keycode from keypress

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

3 participants