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

Function Of

keymap/keymap.go:154–156  ·  view source on GitHub ↗

Of converts the given [key.Chord] into a keyboard function.

(chord key.Chord)

Source from the content-addressed store, hash-verified

152
153// Of converts the given [key.Chord] into a keyboard function.
154func Of(chord key.Chord) Functions {
155 return (*ActiveMap)[chord]
156}
157
158// MapItem records one element of the key map, which is used for organizing the map.
159type MapItem struct {

Callers 15

InitMethod · 0.92
StyleMenuSceneFunction · 0.92
InitMethod · 0.92
InitMethod · 0.92
makeSelectedRowMethod · 0.92
InitMethod · 0.92
handleKeyEventsMethod · 0.92
InitMethod · 0.92
AddOKMethod · 0.92
AddCancelMethod · 0.92
InitMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected