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