• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Mac Keycodes - Difference between Left Shift and Right Shift etc?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mac Keycodes - Difference between Left Shift and Right Shift etc?


  • Subject: Re: Mac Keycodes - Difference between Left Shift and Right Shift etc?
  • From: Peter Maurer <email@hidden>
  • Date: Wed, 13 Apr 2005 17:33:34 +0200

   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.

TIFF image

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Mac Keycodes - Difference between Left Shift and Right Shift etc?
      • From: Dustin Voss <email@hidden>
References: 
 >Mac Keycodes - Difference between Left Shift and Right Shift etc? (From: Dan Yocom <email@hidden>)

  • Prev by Date: virtual key codes
  • Next by Date: Re: CGConfigureDisplayOrigin
  • Previous by thread: Mac Keycodes - Difference between Left Shift and Right Shift etc?
  • Next by thread: Re: Mac Keycodes - Difference between Left Shift and Right Shift etc?
  • Index(es):
    • Date
    • Thread