parent
ea8c3c801a
commit
9ae6922bdc
1 changed files with 6 additions and 1 deletions
7
ui/static/js/bootstrap.js
vendored
7
ui/static/js/bootstrap.js
vendored
|
@ -35,7 +35,12 @@ 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("a", () => {
|
||||
let enclosureElement = document.querySelector('.entry-enclosures');
|
||||
if (enclosureElement) {
|
||||
enclosureElement.toggleAttribute('open');
|
||||
}
|
||||
});
|
||||
keyboardHandler.on("Escape", () => ModalHandler.close());
|
||||
keyboardHandler.listen();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue