MCPcopy Create free account
hub / github.com/cogentcore/core / Label

Method Label

keymap/keymap.go:200–202  ·  view source on GitHub ↗

Label transforms the key function into a string representing its underlying key chord(s) in a form suitable for display to users.

()

Source from the content-addressed store, hash-verified

198// Label transforms the key function into a string representing
199// its underlying key chord(s) in a form suitable for display to users.
200func (kf Functions) Label() string {
201 return kf.Chord().Label()
202}
203
204// Update ensures that the given keymap has at least one entry for every
205// defined key function, grabbing ones from the default map if not, and

Callers

nothing calls this directly

Calls 2

ChordMethod · 0.95
LabelMethod · 0.65

Tested by

no test coverage detected