Skip to content

Commit e36e5e6

Browse files
authored
make sure right lose focus in follow mode (#265)
1 parent c9ea78b commit e36e5e6

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

internal/tui/views/trafficwatch/main_view.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,11 @@ func (m *MainView) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
172172
m.leftPane.selected = len(m.requests) - 1
173173
m.handleRequestSelected(m.requests[m.leftPane.selected].MiddlewareRequestID)
174174
m.leftPane.sendSelection()
175+
176+
if m.focus == "right" {
177+
m.focus = "left"
178+
m.rightPane.SetFocused(false)
179+
}
175180
}
176181

177182
// Continue listening for more traffic messages

0 commit comments

Comments
 (0)