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@xamarin.com>2015-08-25 20:01:09 +0300
committerLluis Sanchez <lluis@xamarin.com>2015-08-25 20:01:09 +0300
commit26fcc119b50a384ddda1f47bdd7d72d5794c9ca0 (patch)
treef9fd4b3a61984768009935bb0d3765b3710ebeb5 /main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileCommands.cs
parent018a0bbef5eb46daae8184b9c0ef72107290599a (diff)
parentcb630fd2d07267b5c521c017af640d160acfbdf1 (diff)
Merge branch 'master' into roslyn
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileCommands.cs')
-rw-r--r--main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileCommands.cs19
1 files changed, 14 insertions, 5 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileCommands.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileCommands.cs
index 2de0908cc9..62f031f995 100644
--- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileCommands.cs
+++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileCommands.cs
@@ -274,8 +274,12 @@ namespace MonoDevelop.Ide.Commands
int i = 0;
foreach (var ri in files) {
- string acceleratorKeyPrefix = i < 10 ? "_" + ((i + 1) % 10).ToString() + " " : "";
- var cmd = new CommandInfo (acceleratorKeyPrefix + ri.DisplayName.Replace ("_", "__")) {
+ string commandText = ri.DisplayName.Replace ("_", "__");
+ if (!Platform.IsMac) {
+ string acceleratorKeyPrefix = i < 10 ? "_" + ((i + 1) % 10).ToString() + " " : "";
+ commandText = acceleratorKeyPrefix + commandText;
+ }
+ var cmd = new CommandInfo (commandText) {
Description = GettextCatalog.GetString ("Open {0}", ri.FileName)
};
/* Gdk.Pixbuf icon = DesktopService.GetIconForFile (ri.FileName, IconSize.Menu);
@@ -348,13 +352,18 @@ namespace MonoDevelop.Ide.Commands
LoggingService.LogWarning ("Error building recent solutions list", ex);
continue;
}
-
- string acceleratorKeyPrefix = i < 10 ? "_" + ((i + 1) % 10).ToString() + " " : "";
+
+ string commandText = ri.DisplayName.Replace ("_", "__");
+ if (!Platform.IsMac) {
+ string acceleratorKeyPrefix = i < 10 ? "_" + ((i + 1) % 10).ToString() + " " : "";
+ commandText = acceleratorKeyPrefix + commandText;
+ }
+
string str = GettextCatalog.GetString ("Load solution {0}", ri.ToString ());
if (IdeApp.Workspace.IsOpen)
str += " - " + GettextCatalog.GetString ("Hold Control to open in current workspace.");
- var cmd = new CommandInfo (acceleratorKeyPrefix + ri.DisplayName.Replace ("_", "__")) {
+ var cmd = new CommandInfo (commandText) {
Icon = icon,
Description = str,
};