fix(tui): esc closes detail split when list is focused
Previously esc in split view with list focus fell through to capture focus. Now closes the detail pane and stays in stream browse mode.
This commit is contained in:
@@ -455,6 +455,9 @@ func (m model) updateBrowse(msg tea.KeyMsg) (tea.Model, tea.Cmd) {
|
|||||||
m.focus = focusList
|
m.focus = focusList
|
||||||
return m, nil
|
return m, nil
|
||||||
}
|
}
|
||||||
|
m.splitDetail = false
|
||||||
|
m.recalcSizes()
|
||||||
|
return m, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
if m.focus == focusDetail {
|
if m.focus == focusDetail {
|
||||||
|
|||||||
Reference in New Issue
Block a user