toggle menu
This commit is contained in:
parent
386dc6f798
commit
58ecc76b90
|
@ -465,8 +465,12 @@ function hotkey(e) {
|
|||
break;
|
||||
case "KeyM":
|
||||
var menu = document.getElementById("topmenu")
|
||||
if (!menu.open) {
|
||||
menu.open = true
|
||||
menu.querySelector("a").focus()
|
||||
} else {
|
||||
menu.open = false
|
||||
}
|
||||
break
|
||||
case "Escape":
|
||||
var menu = document.getElementById("topmenu")
|
||||
|
|
Loading…
Reference in New Issue