1
0
Fork 0

Add toggle open/close entry attachments shortcut

This commit is contained in:
Martin Vietz 2023-02-06 05:51:51 +01:00 committed by GitHub
parent b338c9b3c2
commit a44ba4abcb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 19 additions and 0 deletions

View file

@ -162,6 +162,7 @@
"page.keyboard_shortcuts.scroll_item_to_top": "Artikel nach oben blättern", "page.keyboard_shortcuts.scroll_item_to_top": "Artikel nach oben blättern",
"page.keyboard_shortcuts.remove_feed": "Dieses Abonnement entfernen", "page.keyboard_shortcuts.remove_feed": "Dieses Abonnement entfernen",
"page.keyboard_shortcuts.go_to_search": "Fokus auf das Suchformular setzen", "page.keyboard_shortcuts.go_to_search": "Fokus auf das Suchformular setzen",
"page.keyboard_shortcuts.toggle_entry_attachments": "Artikel Anhänge öffnen/schließen",
"page.keyboard_shortcuts.close_modal": "Liste der Tastenkürzel schließen", "page.keyboard_shortcuts.close_modal": "Liste der Tastenkürzel schließen",
"page.users.title": "Benutzer", "page.users.title": "Benutzer",
"page.users.username": "Benutzername", "page.users.username": "Benutzername",

View file

@ -162,6 +162,7 @@
"page.keyboard_shortcuts.scroll_item_to_top": "Μετακινηση στοιχείου στην κορυφή", "page.keyboard_shortcuts.scroll_item_to_top": "Μετακινηση στοιχείου στην κορυφή",
"page.keyboard_shortcuts.remove_feed": "Κατάργηση αυτής της ροής", "page.keyboard_shortcuts.remove_feed": "Κατάργηση αυτής της ροής",
"page.keyboard_shortcuts.go_to_search": "Ορίστε εστίαση στη φόρμα αναζήτησης", "page.keyboard_shortcuts.go_to_search": "Ορίστε εστίαση στη φόρμα αναζήτησης",
"page.keyboard_shortcuts.toggle_entry_attachments": "Toggle open/close entry attachments",
"page.keyboard_shortcuts.close_modal": "Κλείσιμο παραθύρου διαλόγου", "page.keyboard_shortcuts.close_modal": "Κλείσιμο παραθύρου διαλόγου",
"page.users.title": "Χρήστες", "page.users.title": "Χρήστες",
"page.users.username": "Χρήστης", "page.users.username": "Χρήστης",

View file

@ -162,6 +162,7 @@
"page.keyboard_shortcuts.scroll_item_to_top": "Scroll item to top", "page.keyboard_shortcuts.scroll_item_to_top": "Scroll item to top",
"page.keyboard_shortcuts.remove_feed": "Remove this feed", "page.keyboard_shortcuts.remove_feed": "Remove this feed",
"page.keyboard_shortcuts.go_to_search": "Set focus on search form", "page.keyboard_shortcuts.go_to_search": "Set focus on search form",
"page.keyboard_shortcuts.toggle_entry_attachments": "Toggle open/close entry attachments",
"page.keyboard_shortcuts.close_modal": "Close modal dialog", "page.keyboard_shortcuts.close_modal": "Close modal dialog",
"page.users.title": "Users", "page.users.title": "Users",
"page.users.username": "Username", "page.users.username": "Username",

View file

@ -162,6 +162,7 @@
"page.keyboard_shortcuts.scroll_item_to_top": "Desplazar elemento hacia arriba", "page.keyboard_shortcuts.scroll_item_to_top": "Desplazar elemento hacia arriba",
"page.keyboard_shortcuts.remove_feed": "Quitar esta fuente", "page.keyboard_shortcuts.remove_feed": "Quitar esta fuente",
"page.keyboard_shortcuts.go_to_search": "Centrarse en el cuadro de búsqueda", "page.keyboard_shortcuts.go_to_search": "Centrarse en el cuadro de búsqueda",
"page.keyboard_shortcuts.toggle_entry_attachments": "Toggle open/close entry attachments",
"page.keyboard_shortcuts.close_modal": "Cerrar el cuadro de diálogo modal", "page.keyboard_shortcuts.close_modal": "Cerrar el cuadro de diálogo modal",
"page.users.title": "Usuarios", "page.users.title": "Usuarios",
"page.users.username": "Nombre de usuario", "page.users.username": "Nombre de usuario",

View file

@ -162,6 +162,7 @@
"page.keyboard_shortcuts.scroll_item_to_top": "Vieritä ylös", "page.keyboard_shortcuts.scroll_item_to_top": "Vieritä ylös",
"page.keyboard_shortcuts.remove_feed": "Poista tämä syöte", "page.keyboard_shortcuts.remove_feed": "Poista tämä syöte",
"page.keyboard_shortcuts.go_to_search": "Aseta painopiste hakukenttään", "page.keyboard_shortcuts.go_to_search": "Aseta painopiste hakukenttään",
"page.keyboard_shortcuts.toggle_entry_attachments": "Toggle open/close entry attachments",
"page.keyboard_shortcuts.close_modal": "Sulje modaalinen valintaikkuna", "page.keyboard_shortcuts.close_modal": "Sulje modaalinen valintaikkuna",
"page.users.title": "Käyttäjät", "page.users.title": "Käyttäjät",
"page.users.username": "Käyttäjätunnus", "page.users.username": "Käyttäjätunnus",

View file

@ -162,6 +162,7 @@
"page.keyboard_shortcuts.scroll_item_to_top": "Faire défiler l'élément vers le haut", "page.keyboard_shortcuts.scroll_item_to_top": "Faire défiler l'élément vers le haut",
"page.keyboard_shortcuts.remove_feed": "Supprimer ce flux", "page.keyboard_shortcuts.remove_feed": "Supprimer ce flux",
"page.keyboard_shortcuts.go_to_search": "Mettre le focus sur le champ de recherche", "page.keyboard_shortcuts.go_to_search": "Mettre le focus sur le champ de recherche",
"page.keyboard_shortcuts.toggle_entry_attachments": "Toggle open/close entry attachments",
"page.keyboard_shortcuts.close_modal": "Fermer la boite de dialogue", "page.keyboard_shortcuts.close_modal": "Fermer la boite de dialogue",
"page.users.title": "Utilisateurs", "page.users.title": "Utilisateurs",
"page.users.username": "Nom d'utilisateur", "page.users.username": "Nom d'utilisateur",

View file

@ -162,6 +162,7 @@
"page.keyboard_shortcuts.scroll_item_to_top": "आइटम को ऊपर तक स्क्रॉल करें", "page.keyboard_shortcuts.scroll_item_to_top": "आइटम को ऊपर तक स्क्रॉल करें",
"page.keyboard_shortcuts.remove_feed": "यह फ़ीड हटाएं", "page.keyboard_shortcuts.remove_feed": "यह फ़ीड हटाएं",
"page.keyboard_shortcuts.go_to_search": "सर्च फॉर्म पर फोकस सेट करें", "page.keyboard_shortcuts.go_to_search": "सर्च फॉर्म पर फोकस सेट करें",
"page.keyboard_shortcuts.toggle_entry_attachments": "Toggle open/close entry attachments",
"page.keyboard_shortcuts.close_modal": "मोडल डायलॉग बंद करें", "page.keyboard_shortcuts.close_modal": "मोडल डायलॉग बंद करें",
"page.users.title": "उपभोक्ता", "page.users.title": "उपभोक्ता",
"page.users.username": "यूसर्नेम", "page.users.username": "यूसर्नेम",

View file

@ -162,6 +162,7 @@
"page.keyboard_shortcuts.scroll_item_to_top": "Scorri l'articolo in alto", "page.keyboard_shortcuts.scroll_item_to_top": "Scorri l'articolo in alto",
"page.keyboard_shortcuts.remove_feed": "Rimuovi questo feed", "page.keyboard_shortcuts.remove_feed": "Rimuovi questo feed",
"page.keyboard_shortcuts.go_to_search": "Apri la casella di ricerca", "page.keyboard_shortcuts.go_to_search": "Apri la casella di ricerca",
"page.keyboard_shortcuts.toggle_entry_attachments": "Toggle open/close entry attachments",
"page.keyboard_shortcuts.close_modal": "Chiudi la finestra di dialogo", "page.keyboard_shortcuts.close_modal": "Chiudi la finestra di dialogo",
"page.users.title": "Utenti", "page.users.title": "Utenti",
"page.users.username": "Nome utente", "page.users.username": "Nome utente",

View file

@ -162,6 +162,7 @@
"page.keyboard_shortcuts.scroll_item_to_top": "アイテムが上端になるようにスクロール", "page.keyboard_shortcuts.scroll_item_to_top": "アイテムが上端になるようにスクロール",
"page.keyboard_shortcuts.remove_feed": "このフィードを削除", "page.keyboard_shortcuts.remove_feed": "このフィードを削除",
"page.keyboard_shortcuts.go_to_search": "検索フォームに移動", "page.keyboard_shortcuts.go_to_search": "検索フォームに移動",
"page.keyboard_shortcuts.toggle_entry_attachments": "Toggle open/close entry attachments",
"page.keyboard_shortcuts.close_modal": "モーダルダイアログを閉じる", "page.keyboard_shortcuts.close_modal": "モーダルダイアログを閉じる",
"page.users.title": "ユーザー一覧", "page.users.title": "ユーザー一覧",
"page.users.username": "ユーザー名", "page.users.username": "ユーザー名",

View file

@ -163,6 +163,7 @@
"page.keyboard_shortcuts.scroll_item_to_top": "Scroll artikel naar boven", "page.keyboard_shortcuts.scroll_item_to_top": "Scroll artikel naar boven",
"page.keyboard_shortcuts.remove_feed": "Verwijder deze feed", "page.keyboard_shortcuts.remove_feed": "Verwijder deze feed",
"page.keyboard_shortcuts.go_to_search": "Focus instellen op zoekformulier", "page.keyboard_shortcuts.go_to_search": "Focus instellen op zoekformulier",
"page.keyboard_shortcuts.toggle_entry_attachments": "Toggle open/close entry attachments",
"page.keyboard_shortcuts.close_modal": "Sluit dialoogscherm", "page.keyboard_shortcuts.close_modal": "Sluit dialoogscherm",
"page.users.title": "Gebruikers", "page.users.title": "Gebruikers",
"page.users.username": "Gebruikersnaam", "page.users.username": "Gebruikersnaam",

View file

@ -164,6 +164,7 @@
"page.keyboard_shortcuts.scroll_item_to_top": "Przewiń artykuł do góry", "page.keyboard_shortcuts.scroll_item_to_top": "Przewiń artykuł do góry",
"page.keyboard_shortcuts.remove_feed": "Usuń ten kanał", "page.keyboard_shortcuts.remove_feed": "Usuń ten kanał",
"page.keyboard_shortcuts.go_to_search": "Ustaw fokus na formularzu wyszukiwania", "page.keyboard_shortcuts.go_to_search": "Ustaw fokus na formularzu wyszukiwania",
"page.keyboard_shortcuts.toggle_entry_attachments": "Toggle open/close entry attachments",
"page.keyboard_shortcuts.close_modal": "Zamknij listę skrótów klawiszowych", "page.keyboard_shortcuts.close_modal": "Zamknij listę skrótów klawiszowych",
"page.users.title": "Użytkownicy", "page.users.title": "Użytkownicy",
"page.users.username": "Nazwa użytkownika", "page.users.username": "Nazwa użytkownika",

View file

@ -162,6 +162,7 @@
"page.keyboard_shortcuts.scroll_item_to_top": "Role o item para cima", "page.keyboard_shortcuts.scroll_item_to_top": "Role o item para cima",
"page.keyboard_shortcuts.remove_feed": "Remover essa fonte", "page.keyboard_shortcuts.remove_feed": "Remover essa fonte",
"page.keyboard_shortcuts.go_to_search": "Ir para o campo de busca", "page.keyboard_shortcuts.go_to_search": "Ir para o campo de busca",
"page.keyboard_shortcuts.toggle_entry_attachments": "Toggle open/close entry attachments",
"page.keyboard_shortcuts.close_modal": "Fechar janela", "page.keyboard_shortcuts.close_modal": "Fechar janela",
"page.users.title": "Usuários", "page.users.title": "Usuários",
"page.users.username": "Nome de usuário", "page.users.username": "Nome de usuário",

View file

@ -164,6 +164,7 @@
"page.keyboard_shortcuts.scroll_item_to_top": "Прокрутите элемент вверх", "page.keyboard_shortcuts.scroll_item_to_top": "Прокрутите элемент вверх",
"page.keyboard_shortcuts.remove_feed": "Удалить эту подписку", "page.keyboard_shortcuts.remove_feed": "Удалить эту подписку",
"page.keyboard_shortcuts.go_to_search": "Установить фокус в поисковой форме", "page.keyboard_shortcuts.go_to_search": "Установить фокус в поисковой форме",
"page.keyboard_shortcuts.toggle_entry_attachments": "Toggle open/close entry attachments",
"page.keyboard_shortcuts.close_modal": "Закрыть модальный диалог", "page.keyboard_shortcuts.close_modal": "Закрыть модальный диалог",
"page.users.title": "Пользователи", "page.users.title": "Пользователи",
"page.users.username": "Имя пользователя", "page.users.username": "Имя пользователя",

View file

@ -162,6 +162,7 @@
"page.keyboard_shortcuts.scroll_item_to_top": "Öğeyi en üste kaydır", "page.keyboard_shortcuts.scroll_item_to_top": "Öğeyi en üste kaydır",
"page.keyboard_shortcuts.remove_feed": "Bu beslemeyi kaldır", "page.keyboard_shortcuts.remove_feed": "Bu beslemeyi kaldır",
"page.keyboard_shortcuts.go_to_search": "Arama formuna odakla", "page.keyboard_shortcuts.go_to_search": "Arama formuna odakla",
"page.keyboard_shortcuts.toggle_entry_attachments": "Toggle open/close entry attachments",
"page.keyboard_shortcuts.close_modal": "İletişim kutusunu kapat", "page.keyboard_shortcuts.close_modal": "İletişim kutusunu kapat",
"page.users.title": "Kullanıcılar", "page.users.title": "Kullanıcılar",
"page.users.username": "Kullanıcı adı", "page.users.username": "Kullanıcı adı",

View file

@ -161,6 +161,7 @@
"page.keyboard_shortcuts.scroll_item_to_top": "Прокрутити запис догори", "page.keyboard_shortcuts.scroll_item_to_top": "Прокрутити запис догори",
"page.keyboard_shortcuts.remove_feed": "Видалити цю стрічку", "page.keyboard_shortcuts.remove_feed": "Видалити цю стрічку",
"page.keyboard_shortcuts.go_to_search": "Поставити фокус на поле пошуку", "page.keyboard_shortcuts.go_to_search": "Поставити фокус на поле пошуку",
"page.keyboard_shortcuts.toggle_entry_attachments": "Toggle open/close entry attachments",
"page.keyboard_shortcuts.close_modal": "Закрити модальне діалогове вікно", "page.keyboard_shortcuts.close_modal": "Закрити модальне діалогове вікно",
"page.users.title": "Користувачі", "page.users.title": "Користувачі",
"page.users.username": "Ім’я користувача", "page.users.username": "Ім’я користувача",

View file

@ -160,6 +160,7 @@
"page.keyboard_shortcuts.scroll_item_to_top": "滚动到顶部", "page.keyboard_shortcuts.scroll_item_to_top": "滚动到顶部",
"page.keyboard_shortcuts.remove_feed": "删除此源", "page.keyboard_shortcuts.remove_feed": "删除此源",
"page.keyboard_shortcuts.go_to_search": "将焦点放在搜索表单上", "page.keyboard_shortcuts.go_to_search": "将焦点放在搜索表单上",
"page.keyboard_shortcuts.toggle_entry_attachments": "Toggle open/close entry attachments",
"page.keyboard_shortcuts.close_modal": "关闭对话窗口", "page.keyboard_shortcuts.close_modal": "关闭对话窗口",
"page.users.title": "用户", "page.users.title": "用户",
"page.users.username": "用户名", "page.users.username": "用户名",

View file

@ -162,6 +162,7 @@
"page.keyboard_shortcuts.scroll_item_to_top": "滾動到頂部", "page.keyboard_shortcuts.scroll_item_to_top": "滾動到頂部",
"page.keyboard_shortcuts.remove_feed": "刪除此Feed", "page.keyboard_shortcuts.remove_feed": "刪除此Feed",
"page.keyboard_shortcuts.go_to_search": "將焦點放在搜尋表單上", "page.keyboard_shortcuts.go_to_search": "將焦點放在搜尋表單上",
"page.keyboard_shortcuts.toggle_entry_attachments": "Toggle open/close entry attachments",
"page.keyboard_shortcuts.close_modal": "關閉對話視窗", "page.keyboard_shortcuts.close_modal": "關閉對話視窗",
"page.users.title": "使用者", "page.users.title": "使用者",
"page.users.username": "使用者名稱", "page.users.username": "使用者名稱",

View file

@ -158,6 +158,7 @@
<li>{{ t "page.keyboard_shortcuts.download_content" }} = <strong>d</strong></li> <li>{{ t "page.keyboard_shortcuts.download_content" }} = <strong>d</strong></li>
<li>{{ t "page.keyboard_shortcuts.toggle_bookmark_status" }} = <strong>f</strong></li> <li>{{ t "page.keyboard_shortcuts.toggle_bookmark_status" }} = <strong>f</strong></li>
<li>{{ t "page.keyboard_shortcuts.save_article" }} = <strong>s</strong></li> <li>{{ t "page.keyboard_shortcuts.save_article" }} = <strong>s</strong></li>
<li>{{ t "page.keyboard_shortcuts.toggle_entry_attachments" }} = <strong>a</strong></li>
<li>{{ t "page.keyboard_shortcuts.scroll_item_to_top" }} = <strong>z + t</strong></li> <li>{{ t "page.keyboard_shortcuts.scroll_item_to_top" }} = <strong>z + t</strong></li>
<li>{{ t "page.keyboard_shortcuts.refresh_all_feeds" }} = <strong>R</strong></li> <li>{{ t "page.keyboard_shortcuts.refresh_all_feeds" }} = <strong>R</strong></li>
<li>{{ t "page.keyboard_shortcuts.remove_feed" }} = <strong>#</strong></li> <li>{{ t "page.keyboard_shortcuts.remove_feed" }} = <strong>#</strong></li>

View file

@ -35,6 +35,7 @@ document.addEventListener("DOMContentLoaded", function () {
keyboardHandler.on("+", () => goToAddSubscription()); keyboardHandler.on("+", () => goToAddSubscription());
keyboardHandler.on("#", () => unsubscribeFromFeed()); keyboardHandler.on("#", () => unsubscribeFromFeed());
keyboardHandler.on("/", (e) => setFocusToSearchInput(e)); keyboardHandler.on("/", (e) => setFocusToSearchInput(e));
keyboardHandler.on("a", () => document.querySelector('.entry-enclosures').toggleAttribute('open'));
keyboardHandler.on("Escape", () => ModalHandler.close()); keyboardHandler.on("Escape", () => ModalHandler.close());
keyboardHandler.listen(); keyboardHandler.listen();
} }