all repos — honk @ bda8b07461c62564112152649b4fd6474fcbf516

my fork of honk

toggle menu
Ted Unangst tedu@tedunangst.com
Wed, 13 Sep 2023 21:00:53 -0400
commit

bda8b07461c62564112152649b4fd6474fcbf516

parent

4036e649d270834b3fec1ff7ecd4d63fad00a5d8

1 files changed, 6 insertions(+), 2 deletions(-)

jump to
M views/honkpage.jsviews/honkpage.js

@@ -465,8 +465,12 @@ scrollprevioushonk();

break; case "KeyM": var menu = document.getElementById("topmenu") - menu.open = true - menu.querySelector("a").focus() + if (!menu.open) { + menu.open = true + menu.querySelector("a").focus() + } else { + menu.open = false + } break case "Escape": var menu = document.getElementById("topmenu")