add ctrl+k and ctrl+j for navigation
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
4d7b92f743
commit
3cda42fc03
2
main.go
2
main.go
|
@ -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",
|
||||||
|
|
Loading…
Reference in New Issue