зеркало из https://github.com/mozilla/gecko-dev.git
Bug 295447 Ctrl+1/2/4/5/6 raises window without focus
r+sr=roc
This commit is contained in:
Родитель
cc652fabee
Коммит
8f04f3e743
|
@ -697,6 +697,12 @@ nsWindow::SetFocus(PRBool aRaise)
|
|||
if (!GTK_WIDGET_HAS_FOCUS(owningWidget)) {
|
||||
LOGFOCUS((" grabbing focus for the toplevel [%p]\n", (void *)this));
|
||||
owningWindow->mContainerBlockFocus = PR_TRUE;
|
||||
|
||||
// Set focus to the window
|
||||
if (gRaiseWindows && aRaise && toplevelWidget &&
|
||||
!GTK_WIDGET_HAS_FOCUS(toplevelWidget))
|
||||
gtk_window_present(GTK_WINDOW(owningWindow->mShell));
|
||||
|
||||
gtk_widget_grab_focus(owningWidget);
|
||||
owningWindow->mContainerBlockFocus = PR_FALSE;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче