From 9440bf47a521a61c91073425bd613710cf7dd1cb Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Sun, 21 Oct 2018 18:32:07 -0700 Subject: Call preventDefault() when a keyboard shortcut is executed --- ui/static/js/bootstrap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui/static/js/bootstrap.js') diff --git a/ui/static/js/bootstrap.js b/ui/static/js/bootstrap.js index 5c0bfac..1327a22 100644 --- a/ui/static/js/bootstrap.js +++ b/ui/static/js/bootstrap.js @@ -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(); -- cgit v1.2.3