Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLluis Sanchez <lluis@novell.com>2010-04-08 23:31:36 +0400
committerLluis Sanchez <lluis@novell.com>2010-04-08 23:31:36 +0400
commitf9af4a70c67d2297d2b550977e50566800de9a04 (patch)
tree1b50dee8ed65f656224146d7832bb5af56b0f138
parent4b8c2c8fa78079172a1ca112d34991c5c7bc23f5 (diff)
* MonoDevelop.Ide.addin.xml:
* MonoDevelop.Ide.Commands/EditCommands.cs: * MonoDevelop.Ide.Gui.OptionPanels/KeyBindingsPanel.cs: Added DeleteKey command, which can be used to easily bind the Delete key to command handlers. svn path=/trunk/monodevelop/; revision=155085
-rw-r--r--main/src/core/MonoDevelop.Ide/ChangeLog8
-rw-r--r--main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/EditCommands.cs10
-rw-r--r--main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.OptionPanels/KeyBindingsPanel.cs2
-rw-r--r--main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.addin.xml12
4 files changed, 30 insertions, 2 deletions
diff --git a/main/src/core/MonoDevelop.Ide/ChangeLog b/main/src/core/MonoDevelop.Ide/ChangeLog
index 518ad77c4f..7fe5bca71b 100644
--- a/main/src/core/MonoDevelop.Ide/ChangeLog
+++ b/main/src/core/MonoDevelop.Ide/ChangeLog
@@ -1,3 +1,11 @@
+2010-04-08 Lluis Sanchez Gual <lluis@novell.com>
+
+ * MonoDevelop.Ide.addin.xml:
+ * MonoDevelop.Ide.Commands/EditCommands.cs:
+ * MonoDevelop.Ide.Gui.OptionPanels/KeyBindingsPanel.cs: Added
+ DeleteKey command, which can be used to easily bind the
+ Delete key to command handlers.
+
2010-04-08 Aaron Bockover <abockover@novell.com>
* MonoDevelop.Components/SearchEntry.cs: Render the entry
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/EditCommands.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/EditCommands.cs
index 5ce9a47f1d..d4afa228a3 100644
--- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/EditCommands.cs
+++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/EditCommands.cs
@@ -61,7 +61,15 @@ namespace MonoDevelop.Ide.Commands
ToggleFolding,
ToggleAllFoldings,
- FoldDefinitions
+ FoldDefinitions,
+
+ /// <summary>
+ /// The DeleteKey command can be used to easily bind the Delete key to a command handler
+ /// Notice that the EditCommands.Delete command is not bound to the Delete key since it is not always
+ /// convenient to fire the Delete command when pressing Delete (for example, while editing the name of
+ /// a file in the solution pad.
+ /// </summary>
+ DeleteKey
}
internal class MonodevelopPreferencesHandler: CommandHandler
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.OptionPanels/KeyBindingsPanel.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.OptionPanels/KeyBindingsPanel.cs
index 4382310907..7e126c681e 100644
--- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.OptionPanels/KeyBindingsPanel.cs
+++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.OptionPanels/KeyBindingsPanel.cs
@@ -226,7 +226,7 @@ namespace MonoDevelop.Ide.Gui.OptionPanels
foreach (object c in IdeApp.CommandService.GetCommands ()) {
ActionCommand cmd = c as ActionCommand;
- if (cmd == null || cmd.CommandArray)
+ if (cmd == null || cmd.CommandArray || cmd.Category == GettextCatalog.GetString ("Hidden"))
continue;
string key;
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.addin.xml b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.addin.xml
index 92b7316e99..49ce47cba3 100644
--- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.addin.xml
+++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.addin.xml
@@ -662,6 +662,18 @@
scheme for the next MD version and do the change there.
-->
+ <!-- Hidden commands -->
+ <!-- The commands in the hidden category are not shown in the key bindings configuration panel -->
+ <Category id="Hidden" _name="Hidden">
+ <!-- The EditCommands.DeleteKey command can be used to easily bind the Delete key to a command handler -->
+ <!-- Notice that the EditCommands.Delete command is not bound to the Delete key since it is not always -->
+ <!-- convenient to fire the Delete command when pressing Delete (for example, while editing the name of -->
+ <!-- a file in the solution pad. -->
+ <Command id = "MonoDevelop.Ide.Commands.EditCommands.DeleteKey"
+ _label = "_Delete"
+ shortcut = "Delete"/>
+ </Category>
+
<!-- EditCommands -->
<Category _name = "Edit" id="Edit">