Re: Setting Caps Lock state from the application
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