Mercurial > emacs
diff src/nsmenu.m @ 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 | e1a5d89a91dd |
children | b5a34573cf82 |
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:)