parent
fa9aa9f4ad
commit
5c0455b7b9
|
@ -35,7 +35,6 @@ func NewMainMenu() *MainMenu {
|
|||
"visit your subscriptions", // TODO
|
||||
"scribble some graffiti", // TODO
|
||||
"change your settings",
|
||||
"send some feedback", // TODO
|
||||
"see credits",
|
||||
"read documentation",
|
||||
}),
|
||||
|
@ -56,7 +55,7 @@ func (menu *MainMenu) Event(state *ui.State, event vaxis.Event) (processed bool)
|
|||
menu.list.End()
|
||||
case "Home", "g":
|
||||
menu.list.Home()
|
||||
case "0", "1", "2", "3", "4", "5", "6", "7", "8", "9":
|
||||
case "0", "1", "2", "3", "4", "5", "6", "7", "8":
|
||||
i, _ := strconv.Atoi(key.String())
|
||||
menu.list.SetIndex(i)
|
||||
case "Enter", "l", "Right":
|
||||
|
@ -67,9 +66,9 @@ func (menu *MainMenu) Event(state *ui.State, event vaxis.Event) (processed bool)
|
|||
ui.ViewChange <- NewManagement()
|
||||
case 6:
|
||||
ui.ViewChange <- NewConfig()
|
||||
case 8:
|
||||
case 7:
|
||||
ui.ViewChange <- NewCredits()
|
||||
case 9:
|
||||
case 8:
|
||||
showManpage(state)
|
||||
}
|
||||
}
|
||||
|
@ -85,7 +84,7 @@ func (menu *MainMenu) Event(state *ui.State, event vaxis.Event) (processed bool)
|
|||
Width: 28,
|
||||
Height: 10,
|
||||
})
|
||||
win.New(win.Width/2-14, win.Height/2+9, 28, 1).Print(vaxis.Segment{Text: menu.help})
|
||||
win.New(win.Width/2-14, win.Height/2+8, 28, 1).Print(vaxis.Segment{Text: menu.help})
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue