Re: Changing focus without changing window layout
Re: Changing focus without changing window layout
- Subject: Re: Changing focus without changing window layout
- From: John Louch <email@hidden>
- Date: Mon, 18 Sep 2006 12:48:01 -0700
- Thread-topic: Changing focus without changing window layout
> 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?
Nope, there is not a way to do this.
Thanks,
jl
>
> 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
--------------------------------------------------
John Louch Internet #: email@hidden
_______________________________________________
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