mirror of
https://github.com/anotherhadi/settuings.git
synced 2026-10-05 16:18:24 +02:00
@@ -8,15 +8,17 @@ import (
|
||||
type InputKeyMap struct {
|
||||
Select key.Binding
|
||||
Reset key.Binding
|
||||
Filter key.Binding
|
||||
}
|
||||
|
||||
func newInputKeyMap(cfg config.InputKeys) InputKeyMap {
|
||||
return InputKeyMap{
|
||||
Select: binding(cfg.Select, "apply layout"),
|
||||
Reset: binding(cfg.Reset, "reset to config"),
|
||||
Filter: binding(cfg.Filter, "filter"),
|
||||
}
|
||||
}
|
||||
|
||||
func (i InputKeyMap) Bindings() []key.Binding {
|
||||
return []key.Binding{i.Select, i.Reset}
|
||||
return []key.Binding{i.Select, i.Reset, i.Filter}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user