Fix info pane Esc close and preview background rendering

This commit is contained in:
vrubelroman 2026-04-24 11:05:31 +03:00
parent e0117650de
commit 5a27141298
2 changed files with 86 additions and 22 deletions

View file

@ -424,6 +424,12 @@ func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
m.openHelpModal()
return m, nil
case key.Matches(msg, m.keys.Cancel):
if m.infoMode {
m.infoMode = false
m.selectMode = false
m.status = "Info pane closed"
return m, nil
}
if len(m.activePane().MarkedEntries()) > 0 {
m.activePane().ClearMarks()
m.status = "Selection cleared"