8002114: fix failed for JDK-7160951: [macosx] ActionListener called twice for JMenuItem using ScreenMenuBar
Reviewed-by: serb
--- a/jdk/src/macosx/native/sun/awt/CMenuItem.m Fri Nov 02 19:20:03 2012 +0400
+++ b/jdk/src/macosx/native/sun/awt/CMenuItem.m Fri Nov 02 19:47:12 2012 +0400
@@ -76,7 +76,7 @@
NSEvent *currEvent = [[NSApplication sharedApplication] currentEvent];
if ([currEvent type] == NSKeyDown) {
NSString *menuKey = [sender keyEquivalent];
- NSString *eventKey = [currEvent characters];
+ NSString *eventKey = [currEvent charactersIgnoringModifiers];
if ([menuKey isEqualToString:eventKey]) {
return;
}