Author: lluis
Date: 2007-05-17 12:36:33 -0400 (Thu, 17 May 2007)
New Revision: 77577
Modified:
trunk/monodevelop/Core/src/MonoDevelop.Ide/ChangeLog
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads/TreeViewPad.cs
Log:
* MonoDevelop.Ide.Gui.Pads/TreeViewPad.cs: If a node is being edited,
don't delegate commands to the node builders, since what's selected
is not the node, but the node label. In this way commands such as
Delete will be handled by the node Entry.
Modified: trunk/monodevelop/Core/src/MonoDevelop.Ide/ChangeLog
===================================================================
--- trunk/monodevelop/Core/src/MonoDevelop.Ide/ChangeLog 2007-05-17
16:30:20 UTC (rev 77576)
+++ trunk/monodevelop/Core/src/MonoDevelop.Ide/ChangeLog 2007-05-17
16:36:33 UTC (rev 77577)
@@ -1,5 +1,12 @@
2007-05-17 Lluis Sanchez Gual <[EMAIL PROTECTED]>
+ * MonoDevelop.Ide.Gui.Pads/TreeViewPad.cs: If a node is being edited,
+ don't delegate commands to the node builders, since what's selected
+ is not the node, but the node label. In this way commands such as
+ Delete will be handled by the node Entry.
+
+2007-05-17 Lluis Sanchez Gual <[EMAIL PROTECTED]>
+
* MonoDevelop.Ide.Gui.Pads/SolutionPad.cs: Fill the tree if there is an
open combine when the pad is shown for the first time.
Modified:
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads/TreeViewPad.cs
===================================================================
---
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads/TreeViewPad.cs
2007-05-17 16:30:20 UTC (rev 77576)
+++
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads/TreeViewPad.cs
2007-05-17 16:36:33 UTC (rev 77577)
@@ -498,6 +498,13 @@
object ICommandDelegatorRouter.GetDelegatedCommandTarget ()
{
+ // If a node is being edited, don't delegate commands
to the
+ // node builders, since what's selected is not the node,
+ // but the node label. In this way commands such as
Delete
+ // will be handled by the node Entry.
+ if (editingText)
+ return null;
+
TreeNodeNavigator node = (TreeNodeNavigator)
GetSelectedNode ();
if (node != null) {
NodeBuilder[] chain = node.NodeBuilderChain;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches