Bugzilla – Bug 495623
FragmentControlProvider::SetFocus () doesn't work for ToolStripMenuItems
Last modified: 2009-04-28 23:18:53 UTC
It doesn't work because current implementation only takes in account elements of type Control, and ToolStripMenuItems are Components. This is a request from the following "feature request" from http://www.mono-project.com/Accessibility:_Specification_Notes : 12. There's no way to Select an actionable menuitem without invoking it. Let me explain, let's say we have this context menu: Edit (Cut | Copy | Paste) | Delete The leaf items are the "actionable" menuitems, i.e., the menuitems that have no children (Cut, Copy, Paste, Delete). There's no way to select those items without invoking them, because they don't implement the SelectionItem pattern, neither their parents implement the Selection one. This would be useful to mimic Atk.Selection.AddSelection() behaviour. Also, bug 494586 is a bit related to this.
I've tried to use ((System.Windows.Forms.ToolStripItem)Component).Select (); but it's throwing an NRE inside SWF.
(In reply to comment #1) > I've tried to use ((System.Windows.Forms.ToolStripItem)Component).Select (); > but it's throwing an NRE inside SWF. Seems like this NRE happens on some particular case that I have not hunted yet. I'll open a bug for it once I find it. But for now, this bug is fixed in r132912.