From 0ba146c00cb69ed21c5d528f88f737714ecabde5 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Sat, 26 Aug 2023 14:56:28 -0400 Subject: [PATCH] hotkey / to focus search --- views/header.html | 2 +- views/honkpage.js | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/views/header.html b/views/header.html index c40314a..ef927f2 100644 --- a/views/header.html +++ b/views/header.html @@ -52,7 +52,7 @@
  • help
  • - +
    diff --git a/views/honkpage.js b/views/honkpage.js index f94cd21..9f198a3 100644 --- a/views/honkpage.js +++ b/views/honkpage.js @@ -457,6 +457,11 @@ document.addEventListener("keydown", function(e) { case "KeyK": scrollprevioushonk(); break; + case "Slash": + document.getElementById("topmenu").open = true + document.getElementById("searchbox").focus() + e.preventDefault() + break } })