mirror of
https://github.com/anotherhadi/spilltea.git
synced 2026-05-20 01:32:33 +02:00
Change help menus: Only display shortcuts used on the page
Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com>
This commit is contained in:
@@ -54,3 +54,8 @@ func (g GlobalKeyMap) Bindings() []key.Binding {
|
||||
g.ScrollUp, g.ScrollDown,
|
||||
}
|
||||
}
|
||||
|
||||
// CommonBindings returns keys available on every page.
|
||||
func (g GlobalKeyMap) CommonBindings() []key.Binding {
|
||||
return []key.Binding{g.Quit, g.Help, g.OpenLogs, g.ToggleSidebar}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user