diff --git a/app/browse.go b/app/browse.go index f13b0b6..817c8ae 100644 --- a/app/browse.go +++ b/app/browse.go @@ -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() diff --git a/app/config.go b/app/config.go index ce37faa..aa8e7e5 100644 --- a/app/config.go +++ b/app/config.go @@ -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() diff --git a/app/management.go b/app/management.go index 99a1d40..730110e 100644 --- a/app/management.go +++ b/app/management.go @@ -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() diff --git a/app/menu.go b/app/menu.go index 13ff1d6..fcd9cd1 100644 --- a/app/menu.go +++ b/app/menu.go @@ -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() diff --git a/app/neighbors.go b/app/neighbors.go index 17f5ccb..5a8cd33 100644 --- a/app/neighbors.go +++ b/app/neighbors.go @@ -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() diff --git a/app/subscriptions.go b/app/subscriptions.go index 90006e2..c6812c0 100644 --- a/app/subscriptions.go +++ b/app/subscriptions.go @@ -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() diff --git a/app/user.go b/app/user.go index 3037869..891730c 100644 --- a/app/user.go +++ b/app/user.go @@ -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()