From c3327132ff81e8c62d4d6b83a372c4ffcaee964e Mon Sep 17 00:00:00 2001 From: Will Hanlen Date: Sat, 22 Jun 2024 16:35:04 -0400 Subject: [PATCH] fix esacape key on keyable overlay --- pkg/arvo/neo/cod/std/src/con/sky-htmx.hoon | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/arvo/neo/cod/std/src/con/sky-htmx.hoon b/pkg/arvo/neo/cod/std/src/con/sky-htmx.hoon index a8b107175b..47bde4abc3 100644 --- a/pkg/arvo/neo/cod/std/src/con/sky-htmx.hoon +++ b/pkg/arvo/neo/cod/std/src/con/sky-htmx.hoon @@ -258,14 +258,14 @@ function handleKey(e) { let focused = document.activeElement; let textarea = ['TEXTAREA'].includes(focused.nodeName) - let textinput = ['text', 'number', 'email', 'password'].includes(focused.getAttribute('type')); + let textinput = ['text', 'number', 'email', 'password'].includes(focused.type); if (textarea || textinput) { if (e.key === 'Escape') { document.activeElement.blur(); } return; } - if (e.key === 'Escape') { + else if (e.key === 'Escape') { closeEye(); document.activeElement.blur(); }