From f04935bec5f267f87c3674c232ff75bca821e256 Mon Sep 17 00:00:00 2001 From: raziman Date: Sat, 22 Aug 2020 15:06:31 +0800 Subject: [PATCH] add more keybinding in finder --- popup.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/popup.go b/popup.go index de7066e..5133a21 100644 --- a/popup.go +++ b/popup.go @@ -384,7 +384,7 @@ func searchPopup(stringsToMatch []string, handler func(selected string)) { input.SetInputCapture(func(e *tcell.EventKey) *tcell.EventKey { switch e.Key() { - case tcell.KeyCtrlN: + case tcell.KeyCtrlN, tcell.KeyDown, tcell.KeyCtrlJ: currIndx := list.GetCurrentItem() // if last index if currIndx == list.GetItemCount()-1 { @@ -394,7 +394,7 @@ func searchPopup(stringsToMatch []string, handler func(selected string)) { } list.SetCurrentItem(currIndx) - case tcell.KeyCtrlP: + case tcell.KeyCtrlP, tcell.KeyUp, tcell.KeyCtrlK: currIndx := list.GetCurrentItem() if currIndx == 0 {