diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2022-02-05 14:42:56 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-03-17 19:13:40 +1100 |
commit | 482bdc4f1ea5448c5e98697ae66221e544ea40dd (patch) | |
tree | 7df478f9870e3dddc85f77d7b77439bed16e3c7b /pkg/gui/controllers/attach.go | |
parent | 8e3484d8e98faf12f8395eaf5f9e8381f77a8e52 (diff) |
more refactoring
Diffstat (limited to 'pkg/gui/controllers/attach.go')
-rw-r--r-- | pkg/gui/controllers/attach.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pkg/gui/controllers/attach.go b/pkg/gui/controllers/attach.go new file mode 100644 index 000000000..008c15505 --- /dev/null +++ b/pkg/gui/controllers/attach.go @@ -0,0 +1,10 @@ +package controllers + +import "github.com/jesseduffield/lazygit/pkg/gui/types" + +func AttachControllers(context types.Context, controllers ...types.IController) { + for _, controller := range controllers { + context.AddKeybindingsFn(controller.GetKeybindings) + context.AddMouseKeybindingsFn(controller.GetMouseKeybindings) + } +} |