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