diff --git a/_includes/hotkeys_popover.html b/_includes/hotkeys_popover.html index dabb34d..0a89cbe 100644 --- a/_includes/hotkeys_popover.html +++ b/_includes/hotkeys_popover.html @@ -1,4 +1,3 @@ -
× @@ -12,11 +11,16 @@
@@ -30,22 +34,15 @@
- +
  • -
    Close - esc
    -
  • -
-
- -
-
    -
  • -
    Back Top - b t
    +
    Focus search input - cmd/ctrl k
  • -
    Back to YYYY-mm - b YYYYmm
    +
    Close search form - esc
@@ -65,13 +62,16 @@
Go Home - g h
  • -
    Go to Posts by Year - g y
    +
    Go to Posts by Year - g y
  • -
    Go to Posts by Tag - g t
    +
    Go to Posts by Tag - g t
  • -
    Go to Posts by Category - g c
    +
    Go to Posts by Category - g c
  • @@ -94,6 +94,18 @@
    diff --git a/assets/js/setupSearchHotkeys.js b/assets/js/setupSearchHotkeys.js index e29018f..7d1c772 100644 --- a/assets/js/setupSearchHotkeys.js +++ b/assets/js/setupSearchHotkeys.js @@ -4,6 +4,7 @@ const openSearchForm = (searchIcon) => { ?.classList.contains("is--visible"); if (isSearchOpen) { + document.getElementById("search").focus(); return false; }