From a17cfa6d2699ca944b7e88f26ecc72b7466b31df Mon Sep 17 00:00:00 2001 From: Christian Rocha Date: Tue, 10 Nov 2020 22:19:34 -0500 Subject: [PATCH] Shift+tab also moves into filtered results --- ui/stash.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ui/stash.go b/ui/stash.go index f923fee..5be66e1 100644 --- a/ui/stash.go +++ b/ui/stash.go @@ -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 } }