mirror of
https://github.com/fly-apps/live_beats.git
synced 2024-12-22 23:26:29 +00:00
Reset focus on escape
This commit is contained in:
parent
a643ca9fe5
commit
7d8e1f2ec6
1 changed files with 1 additions and 0 deletions
|
@ -56,6 +56,7 @@ Hooks.Menu = {
|
|||
onKeyDown(e){
|
||||
if(e.key === "Escape"){
|
||||
document.body.click()
|
||||
this.el.focus()
|
||||
this.reset()
|
||||
} else if(e.key === "Enter" && !this.activeItem){
|
||||
this.activate(0)
|
||||
|
|
Loading…
Reference in a new issue