mirror of
https://github.com/anotherhadi/usbguard-tui.git
synced 2026-08-21 12:05:50 +02:00
Shorthelp/Fullhelp
Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com>
This commit is contained in:
@@ -37,6 +37,12 @@ func (k listKeyMap) globalBindings() []key.Binding {
|
||||
}
|
||||
}
|
||||
|
||||
func (k listKeyMap) shortHelpBindings() []key.Binding {
|
||||
return []key.Binding{
|
||||
k.Open, k.Allow, k.Block, k.Reject, k.Filter, k.Quit,
|
||||
}
|
||||
}
|
||||
|
||||
var listKeys = listKeyMap{
|
||||
Open: key.NewBinding(key.WithKeys("enter", "tab"), key.WithHelp("enter/tab", "select action")),
|
||||
Filter: key.NewBinding(key.WithKeys("/"), key.WithHelp("/", "filter")),
|
||||
|
||||
Reference in New Issue
Block a user