changeset 5270:74a1284ca75a

7124551: [macosx] Once added, Menu shortcut cannot be removed Reviewed-by: art, anthony
author serb
date Thu, 29 Mar 2012 17:31:48 +0400
parents 3d5e83373a39
children f84f86c5253e
files src/macosx/native/sun/awt/CMenuItem.m
diffstat 1 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/macosx/native/sun/awt/CMenuItem.m	Tue Mar 27 15:53:29 2012 +0400
+++ b/src/macosx/native/sun/awt/CMenuItem.m	Thu Mar 29 17:31:48 2012 +0400
@@ -125,11 +125,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];
     }];
 }