summaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2022-02-27 16:21:58 +1100
committerJesse Duffield <jessedduffield@gmail.com>2022-03-17 19:13:40 +1100
commitea503633aa396d3063a22a9ead12f8b8cb66a1b0 (patch)
tree2f860eeb033763e6c9402e0e6e575c28bfca2278 /pkg
parent59d4df2a4483993eeebaa0e79feb6c62493bcfe0 (diff)
move keybindings
Diffstat (limited to 'pkg')
-rw-r--r--pkg/gui/controllers/branches_controller.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/pkg/gui/controllers/branches_controller.go b/pkg/gui/controllers/branches_controller.go
index a151d4bcc..08ea95119 100644
--- a/pkg/gui/controllers/branches_controller.go
+++ b/pkg/gui/controllers/branches_controller.go
@@ -36,6 +36,11 @@ func (self *BranchesController) GetKeybindings(opts types.KeybindingsOpts) []*ty
Description: self.c.Tr.LcCheckout,
},
{
+ Key: opts.GetKey(opts.Config.Universal.New),
+ Handler: self.checkSelected(self.newBranch),
+ Description: self.c.Tr.LcNewBranch,
+ },
+ {
Key: opts.GetKey(opts.Config.Branches.CreatePullRequest),
Handler: self.checkSelected(self.handleCreatePullRequest),
Description: self.c.Tr.LcCreatePullRequest,
@@ -62,11 +67,6 @@ func (self *BranchesController) GetKeybindings(opts types.KeybindingsOpts) []*ty
Description: self.c.Tr.LcForceCheckout,
},
{
- Key: opts.GetKey(opts.Config.Universal.New),
- Handler: self.checkSelected(self.newBranch),
- Description: self.c.Tr.LcNewBranch,
- },
- {
Key: opts.GetKey(opts.Config.Universal.Remove),
Handler: self.checkSelectedAndReal(self.delete),
Description: self.c.Tr.LcDeleteBranch,