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

Function init

keymap/init.go:15–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13)
14
15func init() {
16 AvailableMaps.CopyFrom(StandardMaps)
17 switch system.TheApp.SystemPlatform() {
18 case system.MacOS:
19 DefaultMap = "MacStandard"
20 case system.Windows:
21 DefaultMap = "WindowsStandard"
22 default:
23 DefaultMap = "LinuxStandard"
24 }
25 SetActiveMapName(DefaultMap)
26}

Callers

nothing calls this directly

Calls 3

SetActiveMapNameFunction · 0.85
CopyFromMethod · 0.65
SystemPlatformMethod · 0.65

Tested by

no test coverage detected