Bug 509988

Summary: ToolBarButton: buttons on the toolbar should either not have "focusable" state or should gain "focused" state
Product: [Mono] UI Automation Reporter: Brian Merrell <bgmerrell>
Component: Winforms - GeneralAssignee: E-mail List <mono-a11y-bugs>
Status: NEW --- QA Contact: E-mail List <mono-a11y-qa>
Severity: Normal    
Priority: P2 - High CC: cachen
Version: Release 1.0   
Target Milestone: Release 1.1   
Hardware: x86   
OS: openSUSE 11.1   
Whiteboard:
Found By: Integration Test Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Brian Merrell 2009-06-04 15:32:49 UTC
PROBLEM STATEMENT

ToolBarButton accessibles currently have the "focusable" state but they do not gain "focus" when they have keyboard focus.  I think it only makes sense for ToolBarButton accessibles to gain the "focused" state when they have keyboard focused or not have the "focusable" at all.  It is somewhat unclear what the correct behavior would be since IsKeyboardFocusable is "False" for ToolBarButtons in UI Spy on Windows.

REPRO

1.  Run Accerciser, open the "Interface Viewer" tab, and expand the "Accessible" expander.  This will reveal a "States" list.
2.  Run uia2atk/test/samples/toolbarbutton.py
3.  In Accerciser's left pane, browse to and select the "PushButton" push button accessible.  (It is a child of the first "panel" child of the "tool bar" acessible).
4.  Use Alt+Tab to return to the "ToolBarButton control" window
5.  Press the right arrow, which will cause the "PushButton" to have keyboard focus
6.  Check the list of states in Accerciser's interface viewer

RESULTS

The "PushButton" button has keyboard focus, but the accessible does not have the "focused" state.

EXPECTED RESULTS

The "PushButton" push button accessible should have the "focused" state.

COMMENTS

Currently there is a problem manipulating ToolBarButtons with the keyboard.  See Bug 509985.

It appears that ToolBarButton accessibles can be "toggle button" and "push button", so both of them should be considered.  DropDownButtons might also be a special case.
Comment 1 Brad Taylor 2009-07-14 16:08:37 UTC
Move all P1 and P2 bugs into Release 1.1 milestone.