Author: fejj
Date: 2007-07-19 12:25:37 -0400 (Thu, 19 Jul 2007)
New Revision: 82299
Modified:
trunk/monodevelop/Core/src/MonoDevelop.Components/MonoDevelop.Components.Commands/KeyBindingService.cs
Log:
added a comment to explain why we only override cmd.AccelKey if it is defined
in the scheme template
Modified:
trunk/monodevelop/Core/src/MonoDevelop.Components/MonoDevelop.Components.Commands/KeyBindingService.cs
===================================================================
---
trunk/monodevelop/Core/src/MonoDevelop.Components/MonoDevelop.Components.Commands/KeyBindingService.cs
2007-07-19 16:18:05 UTC (rev 82298)
+++
trunk/monodevelop/Core/src/MonoDevelop.Components/MonoDevelop.Components.Commands/KeyBindingService.cs
2007-07-19 16:25:37 UTC (rev 82299)
@@ -77,6 +77,9 @@
else
key = cmd.Id.ToString ();
+ // Note: Only override the cmd.AccelKey if the scheme
had the binding defined,
+ // this way if an Addin later gets installed which has
its own set of Commands
+ // w/ key-bindings, we won't inadvertantly override
them.
if (current.ContainsKey (key))
cmd.AccelKey = current[key];
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches