mirror of
https://github.com/jesseduffield/lazygit.git
synced 2024-12-14 11:23:09 +02:00
11 lines
325 B
Go
11 lines
325 B
Go
|
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)
|
||
|
}
|
||
|
}
|