blob: 008c155050e8bb13356199e8c5b73d73211f8cc2 (
plain)
1
2
3
4
5
6
7
8
9
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)
}
}
|