on main help sign in
fix: tab to chat only when in chat
commit891b5353207386f5b3753380dbb41105d2f132bf authorKujtim Hoxha <kujtimii.h@gmail.com> dateThu 22 Jan 2026, 15:19 (9 months ago) parentf002e6f
1 file changed+6−4
internal/ui/model/ui.go+6−4
internal/ui/model/ui.go+6−4
@@ -1433,10 +1433,12 @@ func (m *UI) handleKeyPressMsg(msg tea.KeyPressMsg) tea.Cmd {
14331433 }
14341434 m.newSession()
14351435 case key.Matches(msg, m.keyMap.Tab):
1436− m.focus = uiFocusMain
1437− m.textarea.Blur()
1438− m.chat.Focus()
1439− m.chat.SetSelected(m.chat.Len() - 1)
1436+ if m.state != uiLanding {
1437+ m.focus = uiFocusMain
1438+ m.textarea.Blur()
1439+ m.chat.Focus()
1440+ m.chat.SetSelected(m.chat.Len() - 1)
1441+ }
14401442 case key.Matches(msg, m.keyMap.Editor.OpenEditor):
14411443 if m.isAgentBusy() {
14421444 cmds = append(cmds, uiutil.ReportWarn("Agent is working, please wait..."))