changeset 5602:21b753dd0fde

8002114: fix failed for JDK-7160951: [macosx] ActionListener called twice for JMenuItem using ScreenMenuBar Reviewed-by: serb, anthony
author leonidr
date Mon, 19 Nov 2012 12:12:47 +0000
parents af5b12bbe189
children a91ac65b5e2f
files src/macosx/native/sun/awt/CMenuItem.m
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/macosx/native/sun/awt/CMenuItem.m	Wed Nov 14 17:56:28 2012 -0800
+++ b/src/macosx/native/sun/awt/CMenuItem.m	Mon Nov 19 12:12:47 2012 +0000
@@ -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;
         }