add C-n C-p next previous
parent
a04e79fc54
commit
9db7c4b44d
|
@ -46,9 +46,9 @@ func (browse *Browse) Event(state *ui.State, event vaxis.Event) (processed bool)
|
|||
switch key.String() {
|
||||
case "Ctrl+c", "Ctrl+d":
|
||||
close(ui.Quit)
|
||||
case "Down", "j":
|
||||
case "Down", "j", "Ctrl+n":
|
||||
browse.list.Down()
|
||||
case "Up", "k":
|
||||
case "Up", "k", "Ctrl+p":
|
||||
browse.list.Up()
|
||||
case "End", "Shift+g":
|
||||
browse.list.End()
|
||||
|
|
|
@ -64,9 +64,9 @@ func (config *Config) Event(state *ui.State, event vaxis.Event) (processed bool)
|
|||
switch key.String() {
|
||||
case "Ctrl+c", "Ctrl+d":
|
||||
close(ui.Quit)
|
||||
case "Down", "j":
|
||||
case "Down", "j", "Ctrl+n":
|
||||
config.list.Down()
|
||||
case "Up", "k":
|
||||
case "Up", "k", "Ctrl+p":
|
||||
config.list.Up()
|
||||
case "End", "Shift+g":
|
||||
config.list.End()
|
||||
|
|
|
@ -36,9 +36,9 @@ func (management *Management) Event(state *ui.State, event vaxis.Event) (process
|
|||
switch key.String() {
|
||||
case "Ctrl+c", "Ctrl+d":
|
||||
close(ui.Quit)
|
||||
case "Down", "j":
|
||||
case "Down", "j", "Ctrl+n":
|
||||
management.list.Down()
|
||||
case "Up", "k":
|
||||
case "Up", "k", "Ctrl+p":
|
||||
management.list.Up()
|
||||
case "End", "Shift+g":
|
||||
management.list.End()
|
||||
|
|
|
@ -48,9 +48,9 @@ func (menu *MainMenu) Event(state *ui.State, event vaxis.Event) (processed bool)
|
|||
switch key.String() {
|
||||
case "Ctrl+c", "Ctrl+d", "q":
|
||||
close(ui.Quit)
|
||||
case "Down", "j":
|
||||
case "Down", "j", "Ctrl+n":
|
||||
menu.list.Down()
|
||||
case "Up", "k":
|
||||
case "Up", "k", "Ctrl+p":
|
||||
menu.list.Up()
|
||||
case "End", "Shift+g":
|
||||
menu.list.End()
|
||||
|
|
|
@ -58,9 +58,9 @@ func (neighbors *Neighbors) Event(state *ui.State, event vaxis.Event) (processed
|
|||
switch key.String() {
|
||||
case "Ctrl+c", "Ctrl+d":
|
||||
close(ui.Quit)
|
||||
case "Down", "j":
|
||||
case "Down", "j", "Ctrl+n":
|
||||
neighbors.list.Down()
|
||||
case "Up", "k":
|
||||
case "Up", "k", "Ctrl+p":
|
||||
neighbors.list.Up()
|
||||
case "End", "Shift+g":
|
||||
neighbors.list.End()
|
||||
|
|
|
@ -42,9 +42,9 @@ func (subscriptions *Subscriptions) Event(state *ui.State, event vaxis.Event) (p
|
|||
switch key.String() {
|
||||
case "Ctrl+c", "Ctrl+d":
|
||||
close(ui.Quit)
|
||||
case "Down", "j":
|
||||
case "Down", "j", "Ctrl+n":
|
||||
subscriptions.list.Down()
|
||||
case "Up", "k":
|
||||
case "Up", "k", "Ctrl+p":
|
||||
subscriptions.list.Up()
|
||||
case "End", "Shift+g":
|
||||
subscriptions.list.End()
|
||||
|
|
|
@ -44,9 +44,9 @@ func (user *UserPage) Event(state *ui.State, event vaxis.Event) (processed bool)
|
|||
switch key.String() {
|
||||
case "Ctrl+c", "Ctrl+d":
|
||||
close(ui.Quit)
|
||||
case "Down", "j":
|
||||
case "Down", "j", "Ctrl+n":
|
||||
user.list.Down()
|
||||
case "Up", "k":
|
||||
case "Up", "k", "Ctrl+p":
|
||||
user.list.Up()
|
||||
case "End", "Shift+g":
|
||||
user.list.End()
|
||||
|
|
Loading…
Reference in New Issue