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

Method SetKeyFromName

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

Source from the content-addressed store, hash-verified

743
744
745void CommandManager::SetKeyFromName(const CommandID &name,
746 const NormalizedKeyString &key)
747{
748 if (auto iter = mCommandNameHash.find(name);
749 iter != mCommandNameHash.end())
750 iter->second->key = key;
751}
752
753void CommandManager::SetKeyFromIndex(int i, const NormalizedKeyString &key)
754{

Callers 4

ClearAllKeysMethod · 0.80
OnImportMethod · 0.80
SetKeyForSelectedMethod · 0.80
OnSetMethod · 0.80

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected