1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-06-27 16:36:00 +00:00

Call preventDefault() when a keyboard shortcut is executed

This commit is contained in:
Frédéric Guillot 2018-10-21 18:32:07 -07:00
parent 8c65c78904
commit 9440bf47a5
4 changed files with 18 additions and 14 deletions

View file

@ -29,7 +29,7 @@ document.addEventListener("DOMContentLoaded", function() {
keyboardHandler.on("f", () => navHandler.toggleBookmark());
keyboardHandler.on("?", () => navHandler.showKeyboardShortcuts());
keyboardHandler.on("#", () => navHandler.unsubscribeFromFeed());
keyboardHandler.on("/", (e) => navHandler.setFocusToSearchInput(e));
keyboardHandler.on("/", () => navHandler.setFocusToSearchInput());
keyboardHandler.on("Escape", () => ModalHandler.close());
keyboardHandler.listen();