From c0af1dd320d7e9fd6e59a440ea94c645628f30e4 Mon Sep 17 00:00:00 2001 From: iProgramInCpp Date: Fri, 26 Apr 2024 12:38:46 +0300 Subject: [PATCH] * QuickSwitcher: Instantly focus on the search box --- src/windows/QuickSwitcher.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/windows/QuickSwitcher.cpp b/src/windows/QuickSwitcher.cpp index 926535b..f1dc00f 100644 --- a/src/windows/QuickSwitcher.cpp +++ b/src/windows/QuickSwitcher.cpp @@ -280,6 +280,9 @@ INT_PTR QuickSwitcher::DialogProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lP // Go button is disabled by default, enabled when an item is selected EnableWindow(GetDlgItem(hWnd, IDOK), FALSE); + // Instantly focus on the searcher + SetFocus(GetDlgItem(hWnd, IDC_QUICK_QUERY)); + break; } case WM_COMMAND: