Re: How to move focus to the Dock using the Accessibility API?
Re: How to move focus to the Dock using the Accessibility API?
- Subject: Re: How to move focus to the Dock using the Accessibility API?
- From: David Niemeijer <email@hidden>
- Date: Sun, 5 Oct 2003 15:11:55 +0200
Hi Bill,
> on that and need to get the Dock focussed progammatically. Is there a
way, once I have the Dock's process ID and/or AXUIElementRef to make
the Dock obtain keyboard focus?
That's an interesting question. I can't find a way to do it using PreFab UI
Browser. The most promising idea I had was to use the Keystrokes drawer to
send Control-F3 (after turning on Full Keyboard Access in System Preferences
manually, which you don't want to rely on) -- but I don't know what
application or process to send the keystroke to. Besides, I'm not sure this
works on a PowerBook where you would also have to press the fn key.
Using control-F3 works as long as you don't send the keystroke to a
particular application but to the system (i.e. use the CGRemote
variant). Problem is that the user can change the shortcut key at any
time to something else. I need a solution that always works and if
the system has a way to focus the dock there should also be a
solution for an assistive app :-)
The Dock's focused UI element attribute is not settable. Clicking UI
Browser's Activate button doesn't help. I can't make Dock menus appear,
either. I can, however, perform a Press action on a specific Dock button,
using standard Accessibility API with the Dock application targeted (it's in
/System/Library/CoreServices) -- but all this does is activate the
application represented by that Dock button.
You are absolutely right. One of the funny things about the dock is
that is does not have windows, only buttons, while of course for a
user it looks like buttons in a window. I have also tried making the
dock's process the front but that did not seem to do the trick either.
david.
_______________________________________________
accessibility-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/accessibility-dev
Do not post admin requests to the list. They will be ignored.