Changing focus without changing window layout
Changing focus without changing window layout
- Subject: Changing focus without changing window layout
- From: Dan <email@hidden>
- Date: Mon, 18 Sep 2006 15:45:23 -0400
Hi,
I'm trying to write a function to assign keyboard focus to a window
without bringing that window to the front. At the moment, I'm using
AXUIElementSetAttributeValue(window, kAXMainAttribute,
kCFBooleanTrue);, and while that does work for focus, it's also
changing the window ordering.
I've tried setting a bunch of different attributes (listed below), but
none of them seem to have any effect.
AXUIElementSetAttributeValue(window, kAXFocusedAttribute,kCFBooleanTrue);
AXUIElementSetAttributeValue(application, kAXFocusedWindowAttribute,window);
AXUIElementSetAttributeValue(application, kAXMainWindowAttribute,window);
Is there a way to change the keyboard focus from one window to another
without changing the visible arrangement of windows?
Forgive me if this is a stupid question; I'm somewhat new to Mac programming.
Thanks
Dan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Accessibility-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden