MCPcopy Create free account
hub / github.com/audacity/audacity / GetKeyFromName

Method GetKeyFromName

libraries/lib-menus/CommandManager.cpp:1105–1111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1103}
1104
1105NormalizedKeyString CommandManager::GetKeyFromName(const CommandID &name) const
1106{
1107 if (auto iter = mCommandNameHash.find(name);
1108 iter != mCommandNameHash.end())
1109 return iter->second->key;
1110 return {};
1111}
1112
1113NormalizedKeyString CommandManager::GetDefaultKeyFromName(const CommandID &name)
1114const

Callers 4

PreviewMethod · 0.80
RefreshKeyInfoMethod · 0.80
MergeWithExistingKeysMethod · 0.80

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected