1
votes

I don't have a Mac, but I have seen its keyboard on pictures and there is a Control key. However the strange thing to me is that on most keyboards shortcuts, system/command key is used instead. Does the Control key on Mac behaves in exactly the same way as Ctrl key on Linux/Windows (in web browsers). To be more specifc, does it keyCode === 17 and does event.ctrlKey work for it?

I just want to implement Ctrl shortcuts for my web application and I'm wondering whether they will work on Macs.

1

1 Answers

1
votes

Yes, the keyCode for the Ctrl key is the same on Mac and PC (17). The keyCode for the command key is 91.

From a usability point of view, Mac's user are not very used to use the Ctrl key since all the common shortcuts use the command key instead. So it would be good if your application support both.