1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-07-22 17:18:37 +00:00

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

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