SUNNY TIWARI 7 months ago committed by GitHub
commit 2fbb7749e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -449,6 +449,13 @@ func (gui *Gui) GetInitialKeybindings() []*Binding {
Modifier: gocui.ModNone,
Handler: gui.scrollRightMain,
},
{
ViewName: "main",
Key: gocui.KeyCtrlL,
Modifier: gocui.ModNone,
Handler: wrappedHandler(gui.handleClearMain),
Description: gui.Tr.ClearMain,
},
{
ViewName: "main",
Key: 'h',

@ -111,3 +111,12 @@ func (gui *Gui) handleMainClick() error {
return gui.switchFocus(gui.Views.Main)
}
func (gui *Gui) handleClearMain() error {
if gui.popupPanelFocused() {
return nil
}
gui.clearMainView()
return nil
}

@ -127,6 +127,7 @@ type TranslationSet struct {
LcNextScreenMode string
LcPrevScreenMode string
ClearMain string
FilterPrompt string
}
@ -262,6 +263,7 @@ func englishSet() TranslationSet {
LcNextScreenMode: "next screen mode (normal/half/fullscreen)",
LcPrevScreenMode: "prev screen mode",
ClearMain: "clear main panel",
FilterPrompt: "filter",
}
}

Loading…
Cancel
Save