8002114: fix failed for JDK-7160951: [macosx] ActionListener called twice for JMenuItem using ScreenMenuBar
Reviewed-by: serb
This commit is contained in:
parent
c0c03f17ce
commit
99cabdb715
@ -76,7 +76,7 @@ JNF_COCOA_ENTER(env);
|
|||||||
NSEvent *currEvent = [[NSApplication sharedApplication] currentEvent];
|
NSEvent *currEvent = [[NSApplication sharedApplication] currentEvent];
|
||||||
if ([currEvent type] == NSKeyDown) {
|
if ([currEvent type] == NSKeyDown) {
|
||||||
NSString *menuKey = [sender keyEquivalent];
|
NSString *menuKey = [sender keyEquivalent];
|
||||||
NSString *eventKey = [currEvent characters];
|
NSString *eventKey = [currEvent charactersIgnoringModifiers];
|
||||||
if ([menuKey isEqualToString:eventKey]) {
|
if ([menuKey isEqualToString:eventKey]) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user