101得票8回答
Where can I find a list of Mac virtual key codes?

我正在使用CGEventCreateKeyboardEvent,需要知道要使用哪些CGKeyCode值。 具体来说,我需要找到Command键的代码。文档提供了其他按键的示例:z是6,shift是56。 一定有一个Mac虚拟键代码清单吧?