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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to