1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-23 00:39:13 +02:00

add type alias for Key

This commit is contained in:
Jesse Duffield
2022-03-26 15:02:32 +11:00
parent 7128d822cb
commit 98e7ec0905
5 changed files with 10 additions and 8 deletions

View File

@ -14,10 +14,10 @@ import (
// KeybindingCreator takes a custom command along with its handler and returns a corresponding keybinding
type KeybindingCreator struct {
contexts *context.ContextTree
getKey func(string) interface{}
getKey func(string) types.Key
}
func NewKeybindingCreator(contexts *context.ContextTree, getKey func(string) interface{}) *KeybindingCreator {
func NewKeybindingCreator(contexts *context.ContextTree, getKey func(string) types.Key) *KeybindingCreator {
return &KeybindingCreator{
contexts: contexts,
getKey: getKey,