Skip to content

Commit b006c83

Browse files
committed
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.
1 parent 0a64e1a commit b006c83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/gui/controllers/prompt_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func NewPromptController(
2727
func (self *PromptController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding {
2828
bindings := []*types.Binding{
2929
{
30-
Key: opts.GetKey(opts.Config.Universal.Confirm),
30+
Key: gocui.KeyEnter,
3131
Handler: func() error { return self.context().State.OnConfirm() },
3232
Description: self.c.Tr.Confirm,
3333
DisplayOnScreen: true,

0 commit comments

Comments
 (0)