[idd] helper: implement keyboard navigation in config window

This commit is contained in:
Quantum
2025-11-09 02:13:29 -05:00
parent 3ed08ba56c
commit cab12c6bd2
4 changed files with 19 additions and 9 deletions

View File

@@ -105,8 +105,12 @@ int WINAPI WinMain(_In_ HINSTANCE hInstance, _In_opt_ HINSTANCE hPrevInstance, _
MSG msg;
while (GetMessage(&msg, NULL, 0, 0) > 0)
{
TranslateMessage(&msg);
DispatchMessage(&msg);
HWND hDlg = window.hwndDialog();
if (!hDlg || !IsDialogMessage(hDlg, &msg))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
}
(void) UnregisterWait(hWait);