зеркало из https://github.com/mozilla/pjs.git
Bug 430419 Command-Option-F does not select search box #2 r=josh, sr=roc, a=dsicore
This commit is contained in:
Родитель
837905770c
Коммит
3681fa2289
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче