changeset 6043:f4a11601680b

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 094c963dca1b
children 509b3b4910ef
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	Fri Nov 02 19:20:03 2012 +0400
+++ b/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;
         }