* ToolStrip.cs: Enable implicit mnemonics for drop down
menu strips. [Fixes part of bug #367692]
svn path=/trunk/mcs/; revision=97631
+2008-03-06 Jonathan Pobst <monkey@jpobst.com>
+
+ * ToolStrip.cs: Enable implicit mnemonics for drop down
+ menu strips. [Fixes part of bug #367692]
+
2008-03-06 Jonathan Pobst <monkey@jpobst.com>
corcompare - fix parameter names [stragglers].
string code = Char.ToUpper (charCode).ToString ();
// If any item's text starts with our letter, it gets the message
- if (this is MenuStrip)
+ if (this is MenuStrip || this is ToolStripDropDownMenu)
foreach (ToolStripItem tsi in this.Items)
if (tsi.Enabled && tsi.Visible && !string.IsNullOrEmpty (tsi.Text) && tsi.Text.ToUpper ().StartsWith (code))
return tsi.ProcessMnemonic (charCode);