changeset 4883:d6bb4b14322d

7124551: [macosx] Once added, Menu shortcut cannot be removed Reviewed-by: anthony, art
author serb
date Tue, 10 Apr 2012 16:13:56 +0400
parents ab0752099077
children 0b287839e567
files src/macosx/native/sun/awt/CMenuItem.m
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/macosx/native/sun/awt/CMenuItem.m	Thu Apr 05 13:27:57 2012 +0400
+++ b/src/macosx/native/sun/awt/CMenuItem.m	Tue Apr 10 16:13:56 2012 +0400
@@ -126,10 +126,8 @@
     [JNFRunLoop performOnMainThreadWaiting:YES withBlock:^(){
         AWT_ASSERT_APPKIT_THREAD;
 
-        if (![theKeyEquivalent isEqualToString:@""]) {
-            [fMenuItem setKeyEquivalent:theKeyEquivalent];
-            [fMenuItem setKeyEquivalentModifierMask:modifierMask];
-        }
+        [fMenuItem setKeyEquivalent:theKeyEquivalent];
+        [fMenuItem setKeyEquivalentModifierMask:modifierMask];
         [fMenuItem setTitle:theLabel];
     }];
 }