Skip to content
This repository has been archived by the owner on Mar 9, 2023. It is now read-only.

Commit

Permalink
autofocus project browser search input
Browse files Browse the repository at this point in the history
  • Loading branch information
bvandevliet committed Feb 17, 2022
1 parent fbfcf87 commit c09757c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/renderer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -413,8 +413,10 @@ const fetchProjectBrowser = async () =>
// Make sure the active states are up-to-date.
updateActiveStates();

// Make sure search is up-to-date.
$('#search-projects').trigger('input');
// Make sure search is up-to-date and focussed.
$('#search-projects')
.trigger('input')
.trigger('focus');
};

// Initial fetch.
Expand Down

0 comments on commit c09757c

Please sign in to comment.