Author: lluis Date: 2008-02-20 06:34:13 -0500 (Wed, 20 Feb 2008) New Revision: 96238
Modified: trunk/monodevelop/main/src/core/MonoDevelop.Components/ChangeLog trunk/monodevelop/main/src/core/MonoDevelop.Components/MonoDevelop.Components.Commands/CommandManager.cs Log: * MonoDevelop.Components.Commands/CommandManager.cs: If a shortcut can't be handled, propagate the key press event to the widget that generated it. Modified: trunk/monodevelop/main/src/core/MonoDevelop.Components/ChangeLog =================================================================== --- trunk/monodevelop/main/src/core/MonoDevelop.Components/ChangeLog 2008-02-20 11:33:47 UTC (rev 96237) +++ trunk/monodevelop/main/src/core/MonoDevelop.Components/ChangeLog 2008-02-20 11:34:13 UTC (rev 96238) @@ -1,3 +1,8 @@ +2008-02-20 Lluis Sanchez Gual <[EMAIL PROTECTED]> + + * MonoDevelop.Components.Commands/CommandManager.cs: If a shortcut can't be + handled, propagate the key press event to the widget that generated it. + 2008-02-14 Lluis Sanchez Gual <[EMAIL PROTECTED]> * gtk-gui/objects.xml, gtk-gui/gui.stetic, Makefile.am, Modified: trunk/monodevelop/main/src/core/MonoDevelop.Components/MonoDevelop.Components.Commands/CommandManager.cs =================================================================== --- trunk/monodevelop/main/src/core/MonoDevelop.Components/MonoDevelop.Components.Commands/CommandManager.cs 2008-02-20 11:33:47 UTC (rev 96237) +++ trunk/monodevelop/main/src/core/MonoDevelop.Components/MonoDevelop.Components.Commands/CommandManager.cs 2008-02-20 11:34:13 UTC (rev 96238) @@ -191,8 +191,11 @@ for (int i = 0; i < commands.Count; i++) { CommandInfo cinfo = GetCommandInfo (commands[i].Id, null); if (cinfo.Enabled && cinfo.Visible && DispatchCommand (commands[i].Id)) - break; + return; } + + e.RetVal = false; + mode = null; } public void SetRootWindow (Gtk.Window root) _______________________________________________ Mono-patches maillist - Mono-patches@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-patches