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

Method SetKeyByName

src/widgets/KeyView.cpp:395–408  ·  view source on GitHub ↗

Sets the key for the given name

Source from the content-addressed store, hash-verified

393// Sets the key for the given name
394//
395bool
396KeyView::SetKeyByName(const CommandID & name, const NormalizedKeyString & key)
397{
398 int index = GetIndexByName(name);
399
400 // Bail is the name wasn't found
401 if (index == wxNOT_FOUND)
402 {
403 return false;
404 }
405
406 // Go set the key
407 return SetKey(index, key);
408}
409
410//
411// Sets the view type

Callers 1

OnSetMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected