diff --git a/pkg/gui/keybindings.go b/pkg/gui/keybindings.go index e9e025ee..4be2eee3 100644 --- a/pkg/gui/keybindings.go +++ b/pkg/gui/keybindings.go @@ -32,6 +32,8 @@ func (b *Binding) GetKey() string { switch key { case 27: return "esc" + case 12: + return "Ctrl+L" case 13: return "enter" case 32: @@ -185,6 +187,13 @@ func (gui *Gui) GetInitialKeybindings() []*Binding { Modifier: gocui.ModNone, Handler: gui.handleDonate, }, + { + ViewName: "containers", + Key: gocui.KeyCtrlL, + Modifier: gocui.ModNone, + Handler: wrappedHandler(gui.handleClearMain), + Description: gui.Tr.ClearMain, + }, { ViewName: "containers", Key: 'd', @@ -262,6 +271,13 @@ func (gui *Gui) GetInitialKeybindings() []*Binding { Handler: gui.handleContainersOpenInBrowserCommand, Description: gui.Tr.OpenInBrowser, }, + { + ViewName: "services", + Key: gocui.KeyCtrlL, + Modifier: gocui.ModNone, + Handler: wrappedHandler(gui.handleClearMain), + Description: gui.Tr.ClearMain, + }, { ViewName: "services", Key: 'u',