╭ changed ──────────╮ │src/embed/script.js│ ╰───────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │122 // when a form element (text input or submit button) owns focus, │ │123 // the browser handles typing, Enter-to-submit, and Tab natively. │ │124 // we only forward keys into the TUI when focus is elsewhere. │ │125 + // exception: arrow up/down on an input unfocuses it and forwards │ │126 + // the event so the TUI can move focus between widgets. │ │127 if (document.activeElement) { │ │128 const tag = document.activeElement.tagName; │ │127 - if (tag === "INPUT" || tag === "BUTTON") return; │ │129 + if (tag === "INPUT" && (event.key === "ArrowUp" || event.key === "ArrowDown")) { │ │130 + document.activeElement.blur(); │ │131 + } else if (tag === "INPUT" || tag === "BUTTON") { │ │132 + return; │ │133 + } │ │134 } │ │135 if (["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight", "PageUp", "PageDown", "Home", "End"].includes(event.key)) {│ │136 event.preventDefault(); │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯