Bug 430419 Command-Option-F does not select search box #2 r=josh, sr=roc, a=dsicore

This commit is contained in:
masayuki@d-toybox.com 2008-04-25 11:32:45 -07:00
parent 458a72eba7
commit acc59dacc6

View File

@ -4868,7 +4868,11 @@ static BOOL keyUpAlreadySentKeyDown = NO;
// happen if we return NO here. This only applies to Mac OS X 10.5 and higher,
// previous OS versions just call "keyDown:" and not "performKeyEquivalent:"
// for such events.
if ((modifierFlags & NSControlKeyMask) || (modifierFlags & NSAlternateKeyMask))
// However, if Cmd key is pressed, this event should not be for changing the
// input sources. Then, "keyDown:" will be never called by platform. So, we
// must call "processKeyDownEvent:" ourselves.
if (!(modifierFlags & NSCommandKeyMask) &&
(modifierFlags & (NSControlKeyMask | NSAlternateKeyMask)))
return NO;
if ([theEvent type] == NSKeyDown) {