diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2022-02-27 11:42:22 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-03-17 19:13:40 +1100 |
commit | 59d4df2a4483993eeebaa0e79feb6c62493bcfe0 (patch) | |
tree | 6155e28bc8c0d405bb64c0b7b126571547f82623 /pkg/gui/controllers/submodules_controller.go | |
parent | cf00949b85b72e4d4726c127a285b748a6a4ba55 (diff) |
fix click handling
Diffstat (limited to 'pkg/gui/controllers/submodules_controller.go')
-rw-r--r-- | pkg/gui/controllers/submodules_controller.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pkg/gui/controllers/submodules_controller.go b/pkg/gui/controllers/submodules_controller.go index 408536960..83c05da4b 100644 --- a/pkg/gui/controllers/submodules_controller.go +++ b/pkg/gui/controllers/submodules_controller.go @@ -69,13 +69,13 @@ func (self *SubmodulesController) GetKeybindings(opts types.KeybindingsOpts) []* Description: self.c.Tr.LcViewBulkSubmoduleOptions, OpensMenu: true, }, - // { - // Key: gocui.MouseLeft, - // Handler: func() error { return self.context().HandleClick(self.checkSelected(self.enter)) }, - // }, } } +func (self *SubmodulesController) GetOnClick() func() error { + return self.checkSelected(self.enter) +} + func (self *SubmodulesController) enter(submodule *models.SubmoduleConfig) error { return self.enterSubmodule(submodule) } |