I'm using CGEventCreateKeyboardEvent
and need to know what value to use for the CGKeyCode
. Specifically, I am after the key code for the Command key (either of them will do). The docs give examples: 'z' is 6, shift is 56. There must be a list somewhere?
views:
16answers:
1
+1
A:
Found an answer. See the picture here: http://classicteck.com/rbarticles/mackeyboard.php
Command is 55, shift is 56, caps lock 57, option is 58, control is 59.
invariant
2010-07-08 10:33:14