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

Method SetKeyFromIndex

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

Source from the content-addressed store, hash-verified

751}
752
753void CommandManager::SetKeyFromIndex(int i, const NormalizedKeyString &key)
754{
755 if (!(0 <= i && i < NCommands())) {
756 assert(false);
757 return;
758 }
759 const auto &entry = mCommandList[i];
760 entry->key = key;
761}
762
763TranslatableString CommandManager::DescribeCommandsAndShortcuts(
764 const ComponentInterfaceSymbol commands[], size_t nCommands) const

Callers 3

MergeWithExistingKeysMethod · 0.80
OnImportDefaultsMethod · 0.80
CancelMethod · 0.80

Calls 1

NCommandsFunction · 0.85

Tested by

no test coverage detected