Fixed mistake not getting focus when calling manual edit window.
This commit is contained in:
2022-02-25 14:34:51 +03:00
parent d5b3ef1040
commit b332c7476f

View File

@@ -362,7 +362,7 @@ LRESULT CALLBACK KeyboardHookProc(int nCode, WPARAM wParam, LPARAM lParam)
if (bApproved) if (bApproved)
{ {
diag_log(L"Opening 'Manual editing' dialog"); 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); SetForegroundWindow(hFgWnd);
} }
else hFgWnd = NULL; else hFgWnd = NULL;