Skip to content

Commit daaa61a

Browse files
gitcoder89431claude
andcommitted
fix: append screen bindings to global shortcuts in footer
Screens with KeyBindings() (e.g. Settings) now show global shortcuts plus their own hints, instead of replacing globals. Screens with FooterBindings() (Connect) still fully control the footer. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent af2fb59 commit daaa61a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

internal/app/view.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,11 @@ func (m Model) View() tea.View {
2727
footBindings := m.keys.ShortHelp()
2828
type footerBinder interface{ FooterBindings() []key.Binding }
2929
if fb, ok := active.(footerBinder); ok {
30+
// screen fully controls the footer (e.g. Connect)
3031
footBindings = fb.FooterBindings()
3132
} else if screenBindings := active.KeyBindings(); len(screenBindings) > 0 {
32-
footBindings = screenBindings
33+
// append screen-specific hints after global shortcuts
34+
footBindings = append(m.keys.ShortHelp(), screenBindings...)
3335
}
3436
foot := footer.View(footBindings, dims.Footer.Width, dims.Footer.Height, m.theme)
3537
mainFrameWidth, mainFrameHeight := m.theme.Main.GetFrameSize()

0 commit comments

Comments
 (0)