From: Jonathan Pobst Date: Thu, 6 Mar 2008 21:19:32 +0000 (-0000) Subject: 2008-03-06 Jonathan Pobst X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=commitdiff_plain;h=846c5564984f7d37d568a69a2a2f9b2324916796;p=mono.git 2008-03-06 Jonathan Pobst * ToolStrip.cs: Enable implicit mnemonics for drop down menu strips. [Fixes part of bug #367692] svn path=/trunk/mcs/; revision=97631 --- diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog index a4d8389483c..c0d7d0da513 100644 --- a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog +++ b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog @@ -1,3 +1,8 @@ +2008-03-06 Jonathan Pobst + + * ToolStrip.cs: Enable implicit mnemonics for drop down + menu strips. [Fixes part of bug #367692] + 2008-03-06 Jonathan Pobst corcompare - fix parameter names [stragglers]. diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStrip.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStrip.cs index f591cfd9c59..6f0fa20f54e 100644 --- a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStrip.cs +++ b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStrip.cs @@ -1125,7 +1125,7 @@ namespace System.Windows.Forms 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);