mirror of
https://github.com/fly-apps/live_beats.git
synced 2024-11-25 01:10:59 +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){
|
onKeyDown(e){
|
||||||
if(e.key === "Escape"){
|
if(e.key === "Escape"){
|
||||||
document.body.click()
|
document.body.click()
|
||||||
|
this.el.focus()
|
||||||
this.reset()
|
this.reset()
|
||||||
} else if(e.key === "Enter" && !this.activeItem){
|
} else if(e.key === "Enter" && !this.activeItem){
|
||||||
this.activate(0)
|
this.activate(0)
|
||||||
|
|
Loading…
Reference in a new issue