Bugzilla – Bug 479397
ContextMenuStrip: ToolStripMenuItem is missing "focused" state when using AtkSelection.
Last modified: 2009-05-12 10:04:37 UTC
Created attachment 275229 [details] pyatspi sample PROBLEM STATEMENT: ToolStripMenuitem in ContextMenuStrip is missing "focused" state when using AtkSelection. REPRO: 1. Run uia2atk/test/sample/contextmenustrip.py. 2. Run attached pyatspi sample. RESULTS: ToolStrip Menu Item 1 States: [STATE_ENABLED, STATE_SELECTABLE, STATE_SELECTED, STATE_SENSITIVE, STATE_SHOWING, STATE_VISIBLE] EXPECTED RESULTS: ToolStrip Menu Item 1 States: [STATE_ENABLED, STATE_SELECTABLE, STATE_SELECTED, STATE_SENSITIVE, STATE_SHOWING, STATE_VISIBLE, STATE_FOCUSED]
I disagree with this, Neville. Focused shouldn't show up unless the control actually has keyboard focus. When calling selectChild(), the menu is not visible, and keyboard focus is not possible. If GAIL is doing this, in my opinion, it's a bug.
Brad, in the attached pyatspi file, the first step is to open ContextMenu, then use AtkSelection to select the child, so I think the menu is visible, and items need "focused" state.
You're right, I was reading the test incorrectly.
This has been fixed in other bugs.
Reopened, this issue can be reproduced in trunk r131300. This is related to bug 471405.
I have a half-working patch for this bug, but it depends in: * Knowing if it's correct that, in gail, a menuitem "Open" below "File" doesn't have a Focusable state _even_ when File is open. I'll check with Mike, which is the one that I guess has the latest gail version installed and running. * The patch on bug 495623 to be applied.
(In reply to comment #6) > * Knowing if it's correct that, in gail, a menuitem "Open" below "File" doesn't > have a Focusable state _even_ when File is open. I'll check with Mike, which is > the one that I guess has the latest gail version installed and running. > * The patch on bug 495623 to be applied. Mike agrees, so I've reported upstream: http://bugzilla.gnome.org/show_bug.cgi?id=580460 http://bugzilla.gnome.org/show_bug.cgi?id=580452
Fixed in r133927.
Verified in trunk r133943. Closing.