Bug 507623 - MenuStrip: menu item's "select" state doesn't go away when selected using selectChild
Summary: MenuStrip: menu item's "select" state doesn't go away when selected using sel...
Status: NEW
Alias: None
Product: UI Automation
Classification: Mono
Component: Winforms - General (show other bugs)
Version: Release 1.0
Hardware: x86 openSUSE 11.1
: P4 - Low : Normal
Target Milestone: ---
Assignee: E-mail List
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-27 21:27 UTC by Brian Merrell
Modified: 2009-07-02 03:21 UTC (History)
1 user (show)

See Also:
Found By: Integration Test
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
pyatspi script referenced in REPRO steps (2.35 KB, text/plain)
2009-05-27 21:36 UTC, Brian Merrell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Brian Merrell 2009-05-27 21:27:32 UTC
PROBLEM STATEMENT

When using pyatspi's selectChild method to select a "menu item" child of a menu accessible, the menu item receives the "selected" state as expected, but the "selected" state doesn't go away when navigating to other menu items with the keyboard.

REPRO

1.  Run uia2atk/test/samples/menustrip.py
2.  Run the attached pyatspi script, which does the following:
    1. Performs 'click' action on the "Edit" menu to open it
    2. Calls selectChild(1) on the "Edit" menu accessible to select the "Paste" 
       menu item.
    3. Prints the states of the "Paste" menu item
    4. Presses the "Down" key to move the selection/focus to the "Copy" menu
       item.
    5. Prints the states of both the "Copy" and "Paste" menu items
    
RESULTS

Both of the menu items have the "selected" state

EXPECTED RESULTS

The "Paste" menu item should have lost the "selected" state when it was navigated away from.  I have verified this behavior with Gtk.

COMMENTS

For what it's worth, the "Paste' menu item does lose its "selected" state when the "Copy" menu item is clicked.  You can uncomment the bottom portion of the script to see this.
Comment 1 Brian Merrell 2009-05-27 21:36:08 UTC
Created attachment 294830 [details]
pyatspi script referenced in REPRO steps