jdk/src/macosx/native/sun/osxapp/NSApplicationAWT.m
changeset 21268 b3298f607368
parent 14342 8435a30053c1
child 23010 6dadb192ad81
equal deleted inserted replaced
21267:fe3928f5591f 21268:b3298f607368
   339 - (void)sendEvent:(NSEvent *)event
   339 - (void)sendEvent:(NSEvent *)event
   340 {
   340 {
   341     if ([event type] == NSApplicationDefined && TS_EQUAL([event timestamp], dummyEventTimestamp)) {
   341     if ([event type] == NSApplicationDefined && TS_EQUAL([event timestamp], dummyEventTimestamp)) {
   342         [seenDummyEventLock lockWhenCondition:NO];
   342         [seenDummyEventLock lockWhenCondition:NO];
   343         [seenDummyEventLock unlockWithCondition:YES];
   343         [seenDummyEventLock unlockWithCondition:YES];
       
   344     } else if ([event type] == NSKeyUp && ([event modifierFlags] & NSCommandKeyMask)) {
       
   345         // Cocoa won't send us key up event when releasing a key while Cmd is down,
       
   346         // so we have to do it ourselves.
       
   347         [[self keyWindow] sendEvent:event];
   344     } else {
   348     } else {
   345         [super sendEvent:event];
   349         [super sendEvent:event];
   346     }
   350     }
   347 }
   351 }
   348 
   352