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

Method ClearAllKeys

src/prefs/KeyConfigPrefs.cpp:369–374  ·  view source on GitHub ↗

Removes all shortcuts Doesn't call RefreshBindings()

Source from the content-addressed store, hash-verified

367// Removes all shortcuts
368// Doesn't call RefreshBindings()
369void KeyConfigPrefs::ClearAllKeys()
370{
371 const NormalizedKeyString noKey{ NO_SHORTCUT };
372 for (const auto & command : mNames)
373 mManager->SetKeyFromName(command, noKey);
374}
375
376// Checks if the given vector of keys contains illegal duplicates.
377// In case it does, stores the prefixed labels of operations

Callers

nothing calls this directly

Calls 1

SetKeyFromNameMethod · 0.80

Tested by

no test coverage detected