From 926292834faf8ef8d86ce01752f633737693c5e7 Mon Sep 17 00:00:00 2001 From: Siegfried Pammer Date: Sun, 18 Aug 2013 09:17:36 +0200 Subject: [PATCH] fix display of Ctrl+Return shortcut in Search-Menu --- src/Main/ICSharpCode.Core.Presentation/Menu/MenuService.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Main/ICSharpCode.Core.Presentation/Menu/MenuService.cs b/src/Main/ICSharpCode.Core.Presentation/Menu/MenuService.cs index f2398be32b..9850a28f8a 100644 --- a/src/Main/ICSharpCode.Core.Presentation/Menu/MenuService.cs +++ b/src/Main/ICSharpCode.Core.Presentation/Menu/MenuService.cs @@ -5,6 +5,7 @@ using System; using System.Collections; using System.Collections.Generic; using System.Globalization; +using System.Linq; using System.Reflection; using System.Runtime.InteropServices; using System.Text; @@ -249,7 +250,7 @@ namespace ICSharpCode.Core.Presentation { string old = kg.GetDisplayStringForCulture(Thread.CurrentThread.CurrentUICulture); string text = KeyCodeConversion.KeyToUnicode(kg.Key.ToKeys()); - if (text != null) { + if (text != null && !text.Any(ch => char.IsWhiteSpace(ch))) { if ((kg.Modifiers & ModifierKeys.Alt) == ModifierKeys.Alt) text = "Alt+" + text; if ((kg.Modifiers & ModifierKeys.Shift) == ModifierKeys.Shift)