mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Windows: Fix focus assignment after dismissing JS dialogs (issue #2584)
This commit is contained in:
@ -623,7 +623,10 @@ void RootWindowWin::OnPaint() {
|
||||
}
|
||||
|
||||
void RootWindowWin::OnFocus() {
|
||||
if (browser_window_)
|
||||
// Selecting "Close window" from the task bar menu may send a focus
|
||||
// notification even though the window is currently disabled (e.g. while a
|
||||
// modal JS dialog is displayed).
|
||||
if (browser_window_ && ::IsWindowEnabled(hwnd_))
|
||||
browser_window_->SetFocus(true);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user