Open-source download manager & offline media toolbox for YouTube, music, social media, learning platforms & 1,800+ sites. Built with Tauri 2.0, Rust & Svelte.
Rust downloadmanagerguihacktoberfesthomebrewlightweightlinuxlinux-distributionlocal-firstmacosmacos-packagemedia-toolboxopen-sourcerustsveltetauritrendingtrending-repositorieswindowswindows-desktopytdlp
feat: add keyboard shortcut for focusing search input in media view
Tonho73d2f2958b54
diff --git a/src/routes/telegram/+page.svelte b/src/routes/telegram/+page.svelteindex ead3cada..6b0ea62f 100644--- a/src/routes/telegram/+page.svelte+++ b/src/routes/telegram/+page.svelte@@ -88,15 +88,24 @@: chats);+ function handleKeydown(e: KeyboardEvent) {+ if ((e.ctrlKey || e.metaKey) && e.key === "f" && view === "media" && searchInputRef) {+ e.preventDefault();+ searchInputRef.focus();+ }+ }+$effect(() => {checkSession();onBatchFileStatus(handleBatchFileStatus);+ document.addEventListener("keydown", handleKeydown);return () => {stopQrPolling();onBatchFileStatus(null);resetThumbnails();+ document.removeEventListener("keydown", handleKeydown);if (searchDebounce) clearTimeout(searchDebounce);invoke("telegram_clear_thumbnail_cache").catch(() => {});};@@ -412,7 +421,7 @@hasMore = true;loadMedia();}- }, 300);+ }, 400);}function changeFilter(filter: string) {