Shift+tab also moves into filtered results

This commit is contained in:
Christian Rocha 2020-11-10 22:19:34 -05:00 committed by Christian Rocha
parent 2e1579542e
commit a17cfa6d26

View file

@ -664,7 +664,7 @@ func stashUpdate(msg tea.Msg, m stashModel) (stashModel, tea.Cmd) {
// Cancel search
m.state = stashStateReady
m.searchInput.Reset()
case "enter", "tab":
case "enter", "tab", "shift+tab", "ctrl+k", "up", "ctrl+j", "down":
m.hideStatusMessage()
if len(m.markdowns) == 0 {
@ -700,9 +700,6 @@ func stashUpdate(msg tea.Msg, m stashModel) (stashModel, tea.Cmd) {
m.searchInput.Reset()
m.state = stashStateReady
}
case "ctrl+k", "ctrl+j", "up", "down":
m.state = stashStateShowFiltered
}
}