ctrl-n next page, ctrl-p prev page

Former-commit-id: 8f5baf91eacd3eb5e4327e5eb020fa6f78a92b29 [formerly 8f5baf91eacd3eb5e4327e5eb020fa6f78a92b29 [formerly 613061f076cb6c6acfa693cfa41f46628995f103 [formerly ce548813f3]]]
Former-commit-id: 3e9a6057824a87edbc7d1f13f7b955906a0b77b9
Former-commit-id: 8e3b391fc109ec2654c36090e0bf610199c69d32 [formerly 3386e50175946b72f6bf7c6f9dd05add884830e2]
Former-commit-id: da5d04d13c81451b301608554e51a56e1bfffbe9
pull/15/head
Miguel Mota 6 years ago
parent dd7ae7e4b1
commit 2d71116fea

@ -42,6 +42,8 @@ List of shortcuts:
|`<left>`|previous page|
|`<ctrl-u>`|page up|
|`<ctrl-d>`|page down|
|`<ctrl-n>`|alias to next page|
|`<ctrl-p>`|alias to previous page|
|`<enter>`|visit highlighted coin on CoinMarketCap|
|`<space>`|alias to `<enter>`
|`j`|alias to `<down>`|

@ -1 +0,0 @@
ed65aa79a4f28f144b4b21c2481224f0466a5181

@ -1 +1 @@
7410bf82087f7933ba1f4b27e49187dca72d6436
1fb6572621a90e9cef241767aadc51ff565d6edf

@ -22,7 +22,9 @@ func (ct *Cointop) setKeybinding(key interface{}, callback func(g *gocui.Gui, v
func (ct *Cointop) keybindings(g *gocui.Gui) error {
ct.setKeybinding(gocui.KeyArrowRight, ct.nextPage)
ct.setKeybinding(gocui.KeyCtrlN, ct.nextPage)
ct.setKeybinding(gocui.KeyArrowLeft, ct.prevPage)
ct.setKeybinding(gocui.KeyCtrlP, ct.prevPage)
ct.setKeybinding(gocui.KeyArrowDown, ct.cursorDown)
ct.setKeybinding('j', ct.cursorDown)
ct.setKeybinding(gocui.KeyArrowUp, ct.cursorUp)

Loading…
Cancel
Save