mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Merge pull request #80548 from garychia/keyboard_focus
Ensure the active window gains the keyboard focus
This commit is contained in:
@@ -3452,6 +3452,10 @@ LRESULT DisplayServerWindows::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARA
|
||||
}
|
||||
if (wParam != WA_INACTIVE) {
|
||||
track_mouse_leave_event(hWnd);
|
||||
|
||||
if (!IsIconic(hWnd)) {
|
||||
SetFocus(hWnd);
|
||||
}
|
||||
}
|
||||
return 0; // Return to the message loop.
|
||||
} break;
|
||||
|
||||
Reference in New Issue
Block a user