1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-01-24 05:36:19 +02:00

12 lines
373 B
Go
Raw Normal View History

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