Bug 503735

Summary: MenuStrip: Selected state of a menu item persists when the menu item is clicked
Product: [Mono] UI Automation Reporter: Brian Merrell <bgmerrell>
Component: Winforms - GeneralAssignee: E-mail List <mono-a11y-bugs>
Status: VERIFIED DUPLICATE QA Contact: E-mail List <mono-a11y-qa>
Severity: Normal    
Priority: P2 - High    
Version: Unspecified   
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-14 04:17:00 UTC
PROBLEM STATEMENT

When a menu item is navigated to on the keyboard or when the mouse is hovered over it receives the "selected" state.  The problem is that the "selected" state does not go away when the Enter key is pressed or when the item is clicked with the mouse. 

REPRO

1.  Run Accerciser, click on the "Interface Viewer" tab, and expand the
"Accessibles" expander
2.  Run uia2atk/test/samples/toolstripmenuitem.py
3.  In Accerciser, browse to and select the "Open" menu item (under the "File"
menu) of the toolstripmenuitem.py ipy application
4.  Press Alt+F to open the file menu
5.  Press Down to navigate to the "Open" menu item.  (You might want to notice that the "Open" menu item receives the "selected" state as expected.)
6.  Press Enter

RESULTS

The menu closes but notice (in that interface viewer) that the "Open" menu item still has the "selected" state

EXPECTED RESULTS

Pressing enter on the "Open" menu item should result in the accessible losing its "selected" state

COMMENTS

You can also duplicate this issue using the mouse.

This is similar to Bug 503733.
Comment 1 Brian Merrell 2009-05-20 03:07:31 UTC
FYI, the menu items on the ToolStripMenuItem appear to work as expected regarding the selected state.
Comment 2 Brian Merrell 2009-05-20 03:35:38 UTC
(In reply to comment #1)
> FYI, the menu items on the ToolStripMenuItem appear to work as expected
> regarding the selected state.

Okay, this is only partially true.  It is true when using the mouse and keyboard to click on the menu items, but when using the at-spi 'click' action, the states are incorrect.  I logged a new bug (Bug 505493) for this.
Comment 3 Brian Merrell 2009-05-25 23:41:30 UTC
I created a new bug for this that has a little more information in the COMMENTS section of the bug description and doesn't have the misleading comments this one does.

*** This bug has been marked as a duplicate of bug 506959 ***