equal
deleted
inserted
replaced
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 |