mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-03-19 21:28:28 +02:00
remove space as keybinding for confirmation panel
This commit is contained in:
parent
44d8b3e8f3
commit
1716de3b59
@ -105,12 +105,8 @@ func (gui *Gui) closeConfirmationPrompt(returnFocusOnClose bool) error {
|
||||
}
|
||||
}
|
||||
|
||||
for _, key := range gui.menuConfirmationKeys() {
|
||||
if err := gui.g.DeleteKeybinding("confirmation", key, gocui.ModNone); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
gui.g.DeleteKeybinding("confirmation", gui.getKey("universal.confirm"), gocui.ModNone)
|
||||
gui.g.DeleteKeybinding("confirmation", gui.getKey("universal.confirm-alt1"), gocui.ModNone)
|
||||
gui.g.DeleteKeybinding("confirmation", gui.getKey("universal.return"), gocui.ModNone)
|
||||
|
||||
return gui.g.DeleteView("confirmation")
|
||||
@ -230,10 +226,11 @@ func (gui *Gui) setKeyBindings(opts createPopupPanelOpts) error {
|
||||
onConfirm = gui.wrappedConfirmationFunction(opts.handleConfirm, opts.returnFocusOnClose)
|
||||
}
|
||||
|
||||
for _, key := range gui.menuConfirmationKeys() {
|
||||
if err := gui.g.SetKeybinding("confirmation", nil, key, gocui.ModNone, onConfirm); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := gui.g.SetKeybinding("confirmation", nil, gui.getKey("universal.confirm"), gocui.ModNone, onConfirm); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := gui.g.SetKeybinding("confirmation", nil, gui.getKey("universal.confirm-alt1"), gocui.ModNone, onConfirm); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return gui.g.SetKeybinding("confirmation", nil, gui.getKey("universal.return"), gocui.ModNone, gui.wrappedConfirmationFunction(opts.handleClose, opts.returnFocusOnClose))
|
||||
|
Loading…
x
Reference in New Issue
Block a user