changeset 14312:310bfcd9c932

8002114: fix failed for JDK-7160951: [macosx] ActionListener called twice for JMenuItem using ScreenMenuBar Reviewed-by: serb
author leonidr
date Fri, 02 Nov 2012 19:47:12 +0400
parents b2492ea8d08e
children 4a3ba762d989
files jdk/src/macosx/native/sun/awt/CMenuItem.m
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;
         }