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

Setting Caps Lock state from the application


  • Subject: Setting Caps Lock state from the application
  • From: Girish Kolari <email@hidden>
  • Date: Mon, 22 Dec 2008 18:11:15 +0530

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
_______________________________________________

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


  • Follow-Ups:
    • Re: Setting Caps Lock state from the application
      • From: Jean-Daniel Dupas <email@hidden>
  • Prev by Date: Re: os x gui scripting
  • Next by Date: Exception on dealloc of NSConcreteProtocolChecker
  • Previous by thread: Re: observeValueForKeyPath and how to do it right
  • Next by thread: Re: Setting Caps Lock state from the application
  • Index(es):
    • Date
    • Thread