add C-n C-p next previous

trunk
nbsp 2025-01-08 00:44:43 +02:00
parent a04e79fc54
commit 9db7c4b44d
No known key found for this signature in database
GPG Key ID: 7184AC1C9835CE48
7 changed files with 14 additions and 14 deletions

View File

@ -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()

View File

@ -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()

View File

@ -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()

View File

@ -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()

View File

@ -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()

View File

@ -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()

View File

@ -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()