mirror of
https://github.com/IllusionMan1212/gorc.git
synced 2026-10-24 02:12:33 +00:00
fix: only switch tabs when inputbox isn't focused
This commit is contained in:
@@ -142,6 +142,11 @@ func (s State) Update(msg tea.Msg) (State, tea.Cmd) {
|
|||||||
|
|
||||||
return s, textinput.Blink
|
return s, textinput.Blink
|
||||||
case "right", "left":
|
case "right", "left":
|
||||||
|
// only cycle between tabs if focus isn't on the inputbox
|
||||||
|
if s.FocusIndex == InputBox {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
|
||||||
// we need this so that the viewport doesnt scroll to the bottom
|
// we need this so that the viewport doesnt scroll to the bottom
|
||||||
if len(s.Client.Channels) == 1 {
|
if len(s.Client.Channels) == 1 {
|
||||||
return s, nil
|
return s, nil
|
||||||
|
|||||||
Reference in New Issue
Block a user