7124551: [macosx] Once added, Menu shortcut cannot be removed
Reviewed-by: art, anthony
This commit is contained in:
parent
5c6579f46b
commit
044b12b8c1
@ -125,11 +125,8 @@ AWT_ASSERT_NOT_APPKIT_THREAD;
|
|||||||
|
|
||||||
[JNFRunLoop performOnMainThreadWaiting:YES withBlock:^(){
|
[JNFRunLoop performOnMainThreadWaiting:YES withBlock:^(){
|
||||||
AWT_ASSERT_APPKIT_THREAD;
|
AWT_ASSERT_APPKIT_THREAD;
|
||||||
|
[fMenuItem setKeyEquivalent:theKeyEquivalent];
|
||||||
if (![theKeyEquivalent isEqualToString:@""]) {
|
[fMenuItem setKeyEquivalentModifierMask:modifierMask];
|
||||||
[fMenuItem setKeyEquivalent:theKeyEquivalent];
|
|
||||||
[fMenuItem setKeyEquivalentModifierMask:modifierMask];
|
|
||||||
}
|
|
||||||
[fMenuItem setTitle:theLabel];
|
[fMenuItem setTitle:theLabel];
|
||||||
}];
|
}];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user