changeset 102433:6d9c8e198f1c

(EmacsMenu-addItemWithWidgetValue:): Don't add accelerator in parens under GNUstep.
author Adrian Robert <Adrian.B.Robert@gmail.com>
date Fri, 06 Mar 2009 19:06:45 +0000
parents 928c9091126b
children 762aaa3e88a0
files src/nsmenu.m
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/nsmenu.m	Fri Mar 06 15:36:16 2009 +0000
+++ b/src/nsmenu.m	Fri Mar 06 19:06:45 2009 +0000
@@ -636,8 +636,11 @@
         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:)