зеркало из https://github.com/mozilla/gecko-dev.git
Bug 497565, only make the window key when visible, r=josh
This commit is contained in:
Родитель
7c765c381c
Коммит
e9dc767091
|
@ -1258,7 +1258,8 @@ NS_IMETHODIMP nsCocoaWindow::SetFocus(PRBool aState)
|
|||
if (mPopupContentView) {
|
||||
mPopupContentView->SetFocus(aState);
|
||||
}
|
||||
else if (aState) {
|
||||
else if (aState && [mWindow isVisible]) {
|
||||
// if the window is shown, move it to the front
|
||||
[mWindow setAcceptsMouseMovedEvents:YES];
|
||||
[mWindow makeKeyAndOrderFront:nil];
|
||||
SendSetZLevelEvent();
|
||||
|
|
Загрузка…
Ссылка в новой задаче