diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-17 17:53:50 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-17 18:22:57 +1000 |
commit | 44d8b3e8f3a49da82c0c39950f3df1086e1a6551 (patch) | |
tree | d6c0002237d68c2f23d3297ebcaa9eb7e34bd20a /pkg/gui/keybindings.go | |
parent | 4f4bb40ea689925c24b2663c3b642393c7c62fe8 (diff) |
allow overriding default confirm/escape keybindings
Diffstat (limited to 'pkg/gui/keybindings.go')
-rw-r--r-- | pkg/gui/keybindings.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pkg/gui/keybindings.go b/pkg/gui/keybindings.go index e149dc66d..ffef99873 100644 --- a/pkg/gui/keybindings.go +++ b/pkg/gui/keybindings.go @@ -831,25 +831,25 @@ func (gui *Gui) GetInitialKeybindings() []*Binding { }, { ViewName: "commitMessage", - Key: gocui.KeyEnter, + Key: gui.getKey("universal.confirm"), Modifier: gocui.ModNone, Handler: gui.handleCommitConfirm, }, { ViewName: "commitMessage", - Key: gocui.KeyEsc, + Key: gui.getKey("universal.return"), Modifier: gocui.ModNone, Handler: gui.handleCommitClose, }, { ViewName: "credentials", - Key: gocui.KeyEnter, + Key: gui.getKey("universal.confirm"), Modifier: gocui.ModNone, Handler: gui.handleSubmitCredential, }, { ViewName: "credentials", - Key: gocui.KeyEsc, + Key: gui.getKey("universal.return"), Modifier: gocui.ModNone, Handler: gui.handleCloseCredentialsView, }, @@ -1355,7 +1355,7 @@ func (gui *Gui) GetInitialKeybindings() []*Binding { }, { ViewName: "search", - Key: gocui.KeyEnter, + Key: gui.getKey("universal.confirm"), Modifier: gocui.ModNone, Handler: gui.handleSearch, }, |