fix: Space/Left/Right passthrough in host form, key/snippet refresh on save/delete, WindowSize to all tabs, footer improvements

This commit is contained in:
swanadiva
2026-06-23 18:48:50 +07:00
parent 9d0338595d
commit 7d41391e13
8 changed files with 118 additions and 11 deletions
+5 -2
View File
@@ -159,7 +159,10 @@ func (t *HostFormTab) Update(msg tea.Msg) (Tab, tea.Cmd) {
t.toggleAuthType()
return t, nil
}
fallthrough
// pass through to text input (allow typing spaces, cursor nav)
var cmd tea.Cmd
t.inputs[t.focus], cmd = t.inputs[t.focus].Update(msg)
return t, cmd
case "tab", "down":
t.nextField()
@@ -356,7 +359,7 @@ func (t *HostFormTab) View() string {
inner.WriteString("\n")
inner.WriteString(lipgloss.PlaceHorizontal(contentW, lipgloss.Center,
SubtitleStyle.Render("Ctrl+Tab:switch Ctrl+Q:close Tab:next Enter:next Ctrl+S:save Esc:cancel")))
SubtitleStyle.Render("Ctrl+Tab:switch Ctrl+Q:close Tab:next Shift+Tab:prev ↑↓:nav Enter:next Ctrl+S:save Esc:cancel")))
box := BorderStyle.Render(inner.String())
var b strings.Builder