I have an event listener in Javascript, I can tell whether a key event is Ctrl (e.keyCode == 17)
, but how can I know this Ctrl comes from the right one or left one?
Just a quick note: I wouldn't base an architecture / design on the availability of the right control key - many laptop keyboards may not have two control keys.
I don't think the keyCode is different.
You can use e.ctrlKey
for a better way to determine if the control key was pressed.
It seems Flash can not tell which one is pressed either (either that or coded incorrectly).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With