keys shown
This commit is contained in:
parent
e356ac116a
commit
621e591a51
@ -440,6 +440,16 @@ func InitMain(ctx *gctx.Context, client *spotify.Client, mode string) (tea.Model
|
|||||||
m.list.DisableQuitKeybindings()
|
m.list.DisableQuitKeybindings()
|
||||||
m.list.AdditionalShortHelpKeys = func() []key.Binding {
|
m.list.AdditionalShortHelpKeys = func() []key.Binding {
|
||||||
return []key.Binding{
|
return []key.Binding{
|
||||||
|
key.NewBinding(key.WithKeys("esc"), key.WithHelp("esc", "back")),
|
||||||
|
key.NewBinding(key.WithKeys("ctrl+c"), key.WithHelp("ctrl+c", "quit")),
|
||||||
|
key.NewBinding(key.WithKeys("ctrl"+"r"), key.WithHelp("ctrl+r", "start radio")),
|
||||||
|
key.NewBinding(key.WithKeys("d"), key.WithHelp("d", "select device")),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
m.list.AdditionalFullHelpKeys = func() []key.Binding {
|
||||||
|
return []key.Binding{
|
||||||
|
key.NewBinding(key.WithKeys("esc"), key.WithHelp("esc", "back")),
|
||||||
|
key.NewBinding(key.WithKeys("ctrl+c"), key.WithHelp("ctrl+c", "quit")),
|
||||||
key.NewBinding(key.WithKeys("ctrl"+"r"), key.WithHelp("ctrl+r", "start radio")),
|
key.NewBinding(key.WithKeys("ctrl"+"r"), key.WithHelp("ctrl+r", "start radio")),
|
||||||
key.NewBinding(key.WithKeys("d"), key.WithHelp("d", "select device")),
|
key.NewBinding(key.WithKeys("d"), key.WithHelp("d", "select device")),
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user