--- a/jdk/src/macosx/native/sun/osxapp/NSApplicationAWT.m Fri Oct 18 20:35:36 2013 +0400
+++ b/jdk/src/macosx/native/sun/osxapp/NSApplicationAWT.m Tue Oct 22 16:45:08 2013 +0400
@@ -341,6 +341,10 @@
if ([event type] == NSApplicationDefined && TS_EQUAL([event timestamp], dummyEventTimestamp)) {
[seenDummyEventLock lockWhenCondition:NO];
[seenDummyEventLock unlockWithCondition:YES];
+ } else if ([event type] == NSKeyUp && ([event modifierFlags] & NSCommandKeyMask)) {
+ // Cocoa won't send us key up event when releasing a key while Cmd is down,
+ // so we have to do it ourselves.
+ [[self keyWindow] sendEvent:event];
} else {
[super sendEvent:event];
}