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

Function SetActiveMap

keymap/keymap.go:121–125  ·  view source on GitHub ↗

SetActiveMap sets the current ActiveKeyMap, calling Update on the map prior to setting it to ensure that it is a valid, complete map

(km *Map, kmName MapName)

Source from the content-addressed store, hash-verified

119// SetActiveMap sets the current ActiveKeyMap, calling Update on the map
120// prior to setting it to ensure that it is a valid, complete map
121func SetActiveMap(km *Map, kmName MapName) {
122 km.Update(kmName)
123 ActiveMap = km
124 ActiveMapName = kmName
125}
126
127// SetActiveMapName sets the current ActiveKeyMap by name from those
128// defined in AvailKeyMaps, calling Update on the map prior to setting it to

Callers 1

SetActiveMapNameFunction · 0.85

Calls 1

UpdateMethod · 0.65

Tested by

no test coverage detected