From 7d8e1f2ec6ae0b0ddf69065507c7fbb0ccd7115b Mon Sep 17 00:00:00 2001 From: Chris McCord Date: Thu, 18 Nov 2021 16:17:47 -0500 Subject: [PATCH] Reset focus on escape --- assets/js/app.js | 1 + 1 file changed, 1 insertion(+) diff --git a/assets/js/app.js b/assets/js/app.js index 2cf758f..c03ae55 100644 --- a/assets/js/app.js +++ b/assets/js/app.js @@ -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)