add ctrl+k and ctrl+j for navigation

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2019-06-26 23:01:53 -04:00 committed by Jakub
parent 4d7b92f743
commit 3cda42fc03
1 changed files with 2 additions and 0 deletions

View File

@ -52,6 +52,8 @@ func main() {
Binding{gocui.KeyCtrlC, gocui.ModNone, quit}, Binding{gocui.KeyCtrlC, gocui.ModNone, quit},
Binding{gocui.KeyArrowUp, gocui.ModNone, mainView.CursorUp}, Binding{gocui.KeyArrowUp, gocui.ModNone, mainView.CursorUp},
Binding{gocui.KeyArrowDown, gocui.ModNone, mainView.CursorDown}, Binding{gocui.KeyArrowDown, gocui.ModNone, mainView.CursorDown},
Binding{gocui.KeyCtrlK, gocui.ModNone, mainView.CursorUp},
Binding{gocui.KeyCtrlJ, gocui.ModNone, mainView.CursorDown},
} }
infoView := &ViewController{ infoView := &ViewController{
Name: "info", Name: "info",