Fixed mistake not getting focus when calling manual edit window

This commit is contained in:
2022-02-21 16:10:11 +03:00
parent 05c4ad977b
commit 7c73a52f0a

View File

@@ -362,7 +362,7 @@ LRESULT CALLBACK KeyboardHookProc(int nCode, WPARAM wParam, LPARAM lParam)
if (bApproved)
{
diag_log(L"Opening 'Manual editing' dialog");
DialogBoxW(hInst, MAKEINTRESOURCE(IDD_MANUAL_EDITING), hWnd, (DLGPROC)DlgProc);
DialogBoxW(hInst, MAKEINTRESOURCE(IDD_MANUAL_EDITING), hFgWnd, (DLGPROC)DlgProc);
SetForegroundWindow(hFgWnd);
}
else hFgWnd = NULL;