Skip navigation.
 
mlRe: Mac Keycodes - Difference between Left Shift and Right Shift etc?
FROM : Peter Maurer
DATE : Wed Apr 13 17:33:34 2005

>    I have a question about Mac keycodes. Is there a difference(in
> keycode) between the shift key on the left side of the keyboard and
> the one on the right? I know on windows computer there is. All of my
> searchings have led me to belive that both shift keys produce the same
> keycode. What about the command keys, etc?


I don't know about the actual keycodes, but my shift keys do seem to
produce different modifier values (131330 and 131332), as displayed in
the attached screenshot. So you might be able to do your thing by
polling the modifier keys' state.

(The screenshot is from my own little key codes utility, which I can
send to you, if you're interested in giving it a try.)

Cheers,

Peter.

Related mailsAuthorDate
mlMac Keycodes - Difference between Left Shift and Right Shift etc? Dan Yocom Apr 13, 17:06
mlRe: Mac Keycodes - Difference between Left Shift and Right Shift etc? Peter Maurer Apr 13, 17:33
mlRe: Mac Keycodes - Difference between Left Shift and Right Shift etc? Dustin Voss Apr 13, 22:02
mlRe: Mac Keycodes - Difference between Left Shift and Right Shift etc? Dan Yocom Apr 14, 23:20