MCPcopy
hub / github.com/jesseduffield/lazygit / NewKeyStrMod

Function NewKeyStrMod

pkg/gocui/key.go:40–46  ·  view source on GitHub ↗
(str string, mod Modifier)

Source from the content-addressed store, hash-verified

38}
39
40func NewKeyStrMod(str string, mod Modifier) Key {
41 return Key{
42 keyName: KeyName(tcell.KeyRune),
43 str: str,
44 mod: mod,
45 }
46}
47
48func (k Key) KeyName() KeyName {
49 return k.keyName

Callers 7

RunTUIFunction · 0.92
KeyFromLabelFunction · 0.92
TestKeyFromLabelFunction · 0.92
TestLabelForKeyFunction · 0.92
onKeyMethod · 0.85
SimpleEditorFunction · 0.85

Calls 1

KeyNameTypeAlias · 0.85

Tested by 3

TestKeyFromLabelFunction · 0.74
TestLabelForKeyFunction · 0.74