jdk/src/macosx/native/sun/awt/CMenuItem.m
changeset 12283 253d9a09f674
parent 12047 320a714614e9
child 13781 bf3d53b1fba7
--- a/jdk/src/macosx/native/sun/awt/CMenuItem.m	Tue Mar 27 15:53:29 2012 +0400
+++ b/jdk/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];
     }];
 }