You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 :/
Activity
heymath commentedon Nov 18, 2016
I guess because keycode uses
event.keyCodeto determine key names, and it seems thatcmd leftandcmd righthave differentkeyCode, butctrl leftandctrl rightshare the samekeyCodewith anevent.locationset to 1 or 2 to make the difference :/ctf0 commentedon Dec 11, 2017
also keydown could give different keycode from keypress