Skip to content

Commit

Permalink
fix select all in inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
edde746 authored and johman10 committed Feb 10, 2024
1 parent 3a753eb commit 0693afb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/TorrentList/TorrentList.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@

<svelte:window
on:keydown="{(event) => {
if (['INPUT', 'TEXTAREA'].includes(document.activeElement.tagName)) return;

if ((event.ctrlKey || event.metaKey) && event.key === 'a') {
event.preventDefault();
selectedTorrents.set($sortedTorrents.map((t) => t.id));
Expand Down

0 comments on commit 0693afb

Please sign in to comment.