diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2023-07-27 19:01:40 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2023-07-30 18:35:23 +1000 |
commit | e356b29b4a7888a24bca6b3784b9df5b2e3fa34c (patch) | |
tree | 7b2fd826d06e20fb0a700796dd66261f56b59c0c /pkg/gui | |
parent | bc4ce26ceff7ff2d8ac5fdc914aea24691591af8 (diff) |
Allow entering a submodule by pressing space
Diffstat (limited to 'pkg/gui')
-rw-r--r-- | pkg/gui/controllers/submodules_controller.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/gui/controllers/submodules_controller.go b/pkg/gui/controllers/submodules_controller.go index b2cb00635..ebf597d3b 100644 --- a/pkg/gui/controllers/submodules_controller.go +++ b/pkg/gui/controllers/submodules_controller.go @@ -36,6 +36,11 @@ func (self *SubmodulesController) GetKeybindings(opts types.KeybindingsOpts) []* Description: self.c.Tr.EnterSubmodule, }, { + Key: opts.GetKey(opts.Config.Universal.Select), + Handler: self.checkSelected(self.enter), + Description: self.c.Tr.EnterSubmodule, + }, + { Key: opts.GetKey(opts.Config.Universal.Remove), Handler: self.checkSelected(self.remove), Description: self.c.Tr.RemoveSubmodule, |