aboutsummaryrefslogtreecommitdiff
path: root/ui/static/js/nav_handler.js
diff options
context:
space:
mode:
authorGravatar Frédéric Guillot <fred@miniflux.net> 2018-10-21 18:32:07 -0700
committerGravatar Frédéric Guillot <fred@miniflux.net> 2018-10-21 18:32:07 -0700
commit9440bf47a521a61c91073425bd613710cf7dd1cb (patch)
tree976d5d56cc569e7c3c1aa50531138e03728e7fe4 /ui/static/js/nav_handler.js
parent8c65c78904225e92df045cac43700210936ca148 (diff)
downloadv2-9440bf47a521a61c91073425bd613710cf7dd1cb.tar.gz
v2-9440bf47a521a61c91073425bd613710cf7dd1cb.tar.zst
v2-9440bf47a521a61c91073425bd613710cf7dd1cb.zip
Call preventDefault() when a keyboard shortcut is executed
Diffstat (limited to 'ui/static/js/nav_handler.js')
-rw-r--r--ui/static/js/nav_handler.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/ui/static/js/nav_handler.js b/ui/static/js/nav_handler.js
index dd106074..689f206e 100644
--- a/ui/static/js/nav_handler.js
+++ b/ui/static/js/nav_handler.js
@@ -1,8 +1,5 @@
class NavHandler {
- setFocusToSearchInput(event) {
- event.preventDefault();
- event.stopPropagation();
-
+ setFocusToSearchInput() {
let toggleSwitchElement = document.querySelector(".search-toggle-switch");
if (toggleSwitchElement) {
toggleSwitchElement.style.display = "none";