Bugzilla – Bug 503735
MenuStrip: Selected state of a menu item persists when the menu item is clicked
Last modified: 2009-05-25 23:41:30 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.
FYI, the menu items on the ToolStripMenuItem appear to work as expected regarding the selected state.
(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.
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 ***