1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2024-12-12 11:15:00 +02:00
lazygit/pkg/gui/controllers/attach.go

12 lines
373 B
Go
Raw Normal View History

2022-02-05 05:42:56 +02:00
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)
2022-02-27 02:42:22 +02:00
context.AddOnClickFn(controller.GetOnClick())
2022-02-05 05:42:56 +02:00
}
}