From: Adam Dullage Date: Tue, 7 May 2024 20:28:30 +0000 (+0100) Subject: Refactor keyboard shortcut binding for search modal in App.vue X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=69128d507359365edb15a4b6ffced1dde92c08dc;p=flatnotes.git Refactor keyboard shortcut binding for search modal in App.vue --- diff --git a/client/App.vue b/client/App.vue index d5a96cd..9c1300a 100644 --- a/client/App.vue +++ b/client/App.vue @@ -33,7 +33,7 @@ const searchModal = ref(); const toast = useToast(); // '/' to search -Mousetrap.bind("/", function () { +Mousetrap.bind("/", () => { if (route.name !== "login") { toggleSearchModal(); return false;