mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-10 07:36:27 -04:00
Hard-code "enter" for editable prompts
Rebinding the universal.confirm keybinding currently doesn't make sense, because the rebound key would also be used for editable prompts, which means you would only be able to bind it to a ctrl key (not "y", which is desirable for some people), and also it would allow you to enter a line feed in a branch name. Fix this by always using enter for editable prompts.
This commit is contained in:
parent
0a64e1abb3
commit
b006c83181
|
|
@ -27,7 +27,7 @@ func NewPromptController(
|
|||
func (self *PromptController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding {
|
||||
bindings := []*types.Binding{
|
||||
{
|
||||
Key: opts.GetKey(opts.Config.Universal.Confirm),
|
||||
Key: gocui.KeyEnter,
|
||||
Handler: func() error { return self.context().State.OnConfirm() },
|
||||
Description: self.c.Tr.Confirm,
|
||||
DisplayOnScreen: true,
|
||||
|
|
|
|||
Loading…
Reference in a new issue