• 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: Setting Caps Lock state from the application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting Caps Lock state from the application


  • Subject: Re: Setting Caps Lock state from the application
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Tue, 23 Dec 2008 09:00:48 +0100


Le 22 déc. 08 à 13:41, Girish Kolari a écrit :

Hi All

We have an application in which we post keyboard events using the API
CGError CGPostKeyboardEvent (CGCharCode keyChar, CGKeyCode virtualKey, boolean_t keyDown);


API works fine for all the events.

However, we are facing an issue with Caps Lock key.

When we post a synthetic event from our application, the event gets posted properly.
However for Capslock, the key state (On/Off state) is not getting set to the keyboard.
Hence an inconsistency is observed in the capslock state when a synthetic capslock event intervenes
with the hardware event(manually pressing capslock key).


Is there any way to set the state of the capslock key to the keyboard from the application?

Any help would be greatly appreciated.
Thanks in advance.

Please let me know If I have to post this query in a different mailing list.

Regards,
Girish Kolari


I'm not aware of any easy way to do it, but have a look at this:

	http://googlemac.blogspot.com/2008/04/manipulating-keyboard-leds-through.html


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Setting Caps Lock state from the application (From: Girish Kolari <email@hidden>)

  • Prev by Date: Re: Arg, lmao question - (int)getters/setters.
  • Next by Date: Re: Debugging memory smashers with GC
  • Previous by thread: Setting Caps Lock state from the application
  • Next by thread: Exception on dealloc of NSConcreteProtocolChecker
  • Index(es):
    • Date
    • Thread