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