From 76099356cd8ea3d89f9f34b230c7512e816b915c Mon Sep 17 00:00:00 2001 From: W0LF Date: Sat, 19 Feb 2022 23:03:53 +0300 Subject: [PATCH] Fixed return of focus to the window after closing the manual editing dialog. --- wCenterWindow/wCenterWindow.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/wCenterWindow/wCenterWindow.cpp b/wCenterWindow/wCenterWindow.cpp index dd2e125..577f73f 100644 --- a/wCenterWindow/wCenterWindow.cpp +++ b/wCenterWindow/wCenterWindow.cpp @@ -363,6 +363,7 @@ LRESULT CALLBACK KeyboardHookProc(int nCode, WPARAM wParam, LPARAM lParam) { diag_log(L"Opening 'Manual editing' dialog"); DialogBoxW(hInst, MAKEINTRESOURCE(IDD_MANUAL_EDITING), hWnd, (DLGPROC)DlgProc); + SetForegroundWindow(hFgWnd); } else hFgWnd = NULL; bKEYV = FALSE;