jdk/src/macosx/native/sun/awt/CMenuItem.m
changeset 14312 310bfcd9c932
parent 13781 bf3d53b1fba7
child 15322 3638f33225ec
equal deleted inserted replaced
14311:b2492ea8d08e 14312:310bfcd9c932
    74     // because AVTView has already sent corresponding key event to the Java 
    74     // because AVTView has already sent corresponding key event to the Java 
    75     // layer from performKeyEquivalent
    75     // layer from performKeyEquivalent
    76     NSEvent *currEvent = [[NSApplication sharedApplication] currentEvent];
    76     NSEvent *currEvent = [[NSApplication sharedApplication] currentEvent];
    77     if ([currEvent type] == NSKeyDown) {
    77     if ([currEvent type] == NSKeyDown) {
    78         NSString *menuKey = [sender keyEquivalent];
    78         NSString *menuKey = [sender keyEquivalent];
    79         NSString *eventKey = [currEvent characters];
    79         NSString *eventKey = [currEvent charactersIgnoringModifiers];
    80         if ([menuKey isEqualToString:eventKey]) {
    80         if ([menuKey isEqualToString:eventKey]) {
    81             return;
    81             return;
    82         }
    82         }
    83     }
    83     }
    84 
    84