Bug 506694

Summary: Default selected index of ComboBox erroneously has "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: P3 - Medium CC: cachen
Version: Release 1.0   
Target Milestone: ---   
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-05-23 06:25:43 UTC
PROBLEM STATEMENT

A problem exists when a ComboBox has an item that is selected by default when the application loads.  The problem is that the menu item accessible that represents the selected index, has the "focused state" even though the ComboBox doesn't even have keyboard focus (let alone the menu item).  This should not be the case.

FOCUSED

1.  Run uia2atk/test/samples/fontdialog.py
2.  Click the 'Click me' button of the "FontDialog control"
3.  Run Accerciser, open the "Interface Viewer" tab, and expand the "Accessible" expander
4.  In Accerciser's left pane, browse to and select the menu items that represent the default selected items of both of the ComboBox controls.  (The "combo box" accessibles can be found under the "Example" panel and the "Effects" panel).  Check the states of each accessible in the interface viewer after selecting it.

RESULTS

The accessibles selected in REPRO step 4 have the "focused" state

EXPECTED RESULTS

The accessibles selected in REPRO step 4 should not have the "focused" state because they do not have keyboard focus.

COMMENTS

You can also test this with the combobox_stylechanges.py sample application by setting 'self.combobox.TabStop = 0', so that the combo box does not have keyboard focus when the application starts.
Comment 1 Brian Merrell 2009-06-04 17:16:35 UTC
This is probably just a duplicate of Bug 510048.