Fix info pane Esc close and preview background rendering
This commit is contained in:
parent
e0117650de
commit
5a27141298
2 changed files with 86 additions and 22 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue