on main help sign in
fix(ui): arrow navigation wasnt working when todo view is open (#2052)
230b99cCarlos Alexandro Becker
internal/ui/model/ui.go+2−2
@@ -1424,14 +1424,14 @@ func (m *UI) handleKeyPressMsg(msg tea.KeyPressMsg) tea.Cmd {
1424 return true
1424 return true
1425 }
1425 }
1426 case key.Matches(msg, m.keyMap.Chat.PillLeft):
1426 case key.Matches(msg, m.keyMap.Chat.PillLeft):
1427− if m.state == uiChat && m.hasSession() && m.pillsExpanded {
1427+ if m.state == uiChat && m.hasSession() && m.pillsExpanded && m.focus != uiFocusEditor {
1428 if cmd := m.switchPillSection(-1); cmd != nil {
1428 if cmd := m.switchPillSection(-1); cmd != nil {
1429 cmds = append(cmds, cmd)
1429 cmds = append(cmds, cmd)
1430 }
1430 }
1431 return true
1431 return true
1432 }
1432 }
1433 case key.Matches(msg, m.keyMap.Chat.PillRight):
1433 case key.Matches(msg, m.keyMap.Chat.PillRight):
1434− if m.state == uiChat && m.hasSession() && m.pillsExpanded {
1434+ if m.state == uiChat && m.hasSession() && m.pillsExpanded && m.focus != uiFocusEditor {
1435 if cmd := m.switchPillSection(1); cmd != nil {
1435 if cmd := m.switchPillSection(1); cmd != nil {
1436 cmds = append(cmds, cmd)
1436 cmds = append(cmds, cmd)
1437 }
1437 }