From d3947a3b7f9e8c1956da3c752112fc9fba64c432 Mon Sep 17 00:00:00 2001 From: Will Hanlen Date: Wed, 19 Jun 2024 13:42:53 -0400 Subject: [PATCH] fix sky-settings not saving --- pkg/arvo/neo/cod/std/src/con/sky-htmx.hoon | 7 +++++-- pkg/arvo/neo/cod/std/src/con/sky-settings-htmx.hoon | 2 +- pkg/arvo/neo/cod/std/src/imp/sky-settings.hoon | 2 +- 3 files changed, 7 insertions(+), 4 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 115741346b..165530ee61 100644 --- a/pkg/arvo/neo/cod/std/src/con/sky-htmx.hoon +++ b/pkg/arvo/neo/cod/std/src/con/sky-htmx.hoon @@ -261,12 +261,15 @@ let textinput = ['text', 'number', 'email', 'password'].includes(focused.getAttribute('type')); if (textarea || textinput) { if (e.key === 'Escape') { - closeEye(); document.activeElement.blur(); } return; } - if (e.key === ' ') { + if (e.key === 'Escape') { + closeEye(); + document.activeElement.blur(); + } + else if (e.key === ' ') { e.preventDefault(); if (window.eye.open) { closeEye(); diff --git a/pkg/arvo/neo/cod/std/src/con/sky-settings-htmx.hoon b/pkg/arvo/neo/cod/std/src/con/sky-settings-htmx.hoon index 1fe77b3016..ca20a9b0ea 100644 --- a/pkg/arvo/neo/cod/std/src/con/sky-settings-htmx.hoon +++ b/pkg/arvo/neo/cod/std/src/con/sky-settings-htmx.hoon @@ -39,7 +39,7 @@ == ++ home-button ;a.p2.br1.bd1.b1.hover.loader.wfc.block - =href "/neo/hawk/home" + =href "/neo/hawk/{(scow %p our.bowl)}/home" =hx-swap "innerHTML" =hx-target "closest .hawk" =hx-select ".hawk" diff --git a/pkg/arvo/neo/cod/std/src/imp/sky-settings.hoon b/pkg/arvo/neo/cod/std/src/imp/sky-settings.hoon index 361da87d2c..f47d23d395 100644 --- a/pkg/arvo/neo/cod/std/src/imp/sky-settings.hoon +++ b/pkg/arvo/neo/cod/std/src/imp/sky-settings.hoon @@ -10,7 +10,7 @@ ++ poke |= [=stud:neo vax=vase] ^- (quip card:neo pail:neo) - `pail + `[stud vax] ++ init |= pal=(unit pail:neo) ^- (quip card:neo pail:neo)