Bugzilla – Bug 508076
ToolStripMenuItem: menu item doesn't lose "selected" state when clicked
Last modified: 2009-07-02 03:21:19 UTC
PROBLEM STATEMENT A ToolStripMenuItem can be represented as a "menu" or a "menu item" accessible (depending on whether it has children or not). A ToolStripMenuItem "menu item" accessible should lose the "selected" when it is clicked. This does not occur, however. The "selected" state remains for a menu item accessible when it is clicked; this is unwanted behavior. REPRO 1. Run Accerciser, open the "Interface Viewer" tab, and expand the "Accessible" expander 2. Run uia2atk/test/samples/toolstripmenuitem.py 3. In Accerciser's left pane, browse to and select the "Create" menu item (which is a child of the "View" menu). 4. In the toolstripmenuitem.py application, left-click on the "View" menu and then move the mouse down to the "Create" menu item without clicking it. Notice that the "Create" menu item gains the "selected" (and the "focused") state. 5. Left-click on the "Create" menu item RESULTS The "View" menu closes (as expected), but the "selected" state remains for the "View" menu item accessible. This would be expected for a combo box, but it is not desirable here. EXPECTED RESULTS The "selected" state goes away when the menu item is clicked. COMMENTS I think we just want to mimic the MenuStrip behavior here, where this problem doesn't exist.