How can I tell if an event comes from right Ctrl key?

后端 未结 6 1723
慢半拍i
慢半拍i 2020-12-11 06:37

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

6条回答
  •  借酒劲吻你
    2020-12-11 07:09

    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).

提交回复
热议问题