mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-02-17 20:50:42 +01:00
alloy: win: Focus the browser after dismissal of a modal dialog (fixes issue #3361)
This commit is contained in:
parent
dac76df7e3
commit
418ae98476
@ -677,6 +677,15 @@ LRESULT CALLBACK CefBrowserPlatformDelegateNativeWin::WndProc(HWND hwnd,
|
|||||||
rect->bottom - rect->top, SWP_NOZORDER | SWP_NOACTIVATE);
|
rect->bottom - rect->top, SWP_NOZORDER | SWP_NOACTIVATE);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case WM_ENABLE:
|
||||||
|
if (wParam == TRUE && browser) {
|
||||||
|
// Give focus to the browser after EnableWindow enables this window
|
||||||
|
// (e.g. after a modal dialog is dismissed).
|
||||||
|
browser->SetFocus(true);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return DefWindowProc(hwnd, message, wParam, lParam);
|
return DefWindowProc(hwnd, message, wParam, lParam);
|
||||||
|
@ -539,6 +539,15 @@ LRESULT CALLBACK RootWindowWin::RootWndProc(HWND hWnd,
|
|||||||
self->OnFocus();
|
self->OnFocus();
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
case WM_ENABLE:
|
||||||
|
if (wParam == TRUE) {
|
||||||
|
// Give focus to the browser after EnableWindow enables this window
|
||||||
|
// (e.g. after a modal dialog is dismissed).
|
||||||
|
self->OnFocus();
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
case WM_SIZE:
|
case WM_SIZE:
|
||||||
self->OnSize(wParam == SIZE_MINIMIZED);
|
self->OnSize(wParam == SIZE_MINIMIZED);
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user