Skip to content

Commit

Permalink
refocus on re-selected search element even if it didn't change
Browse files Browse the repository at this point in the history
  • Loading branch information
Antriel committed Dec 13, 2024
1 parent 7ec39ac commit 1b45347
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/renderer.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -166,3 +166,7 @@ function setSearchQuery(query) {
searchInput.addEventListener("input", () => {
setSearchQuery(searchInput.value || "");
});
searchInput.addEventListener('keyup', () => {
// Reapply the current value. This triggers even if it didn't change.
setSearchQuery(searchInput.value || "");
});

0 comments on commit 1b45347

Please sign in to comment.