From 84ee8aba37b4e3a3d75f03123d3ddb7243b7bb23 Mon Sep 17 00:00:00 2001 From: Adrian Robert Date: Fri, 6 Mar 2009 19:06:45 +0000 Subject: [PATCH] (EmacsMenu-addItemWithWidgetValue:): Don't add accelerator in parens under GNUstep. --- src/nsmenu.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/nsmenu.m b/src/nsmenu.m index 636b71cf308..9a97492e751 100644 --- a/src/nsmenu.m +++ b/src/nsmenu.m @@ -636,8 +636,11 @@ name_is_separator (name) title = @"< ? >"; /* (get out in the open so we know about it) */ keyEq = [self parseKeyEquiv: wv->key]; +#ifdef NS_IMPL_COCOA + /* OS X just ignores modifier strings longer than one character */ if (keyEquivModMask == 0) title = [title stringByAppendingFormat: @" (%@)", keyEq]; +#endif item = [self addItemWithTitle: (NSString *)title action: @selector (menuDown:) -- 2.39.5