Skip to content

Commit

Permalink
* QuickSwitcher: Instantly focus on the search box
Browse files Browse the repository at this point in the history
  • Loading branch information
iProgramMC committed Apr 26, 2024
1 parent 6618929 commit c0af1dd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/windows/QuickSwitcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c0af1dd

Please sign in to comment.