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

Method GetKey

src/widgets/KeyView.cpp:321–332  ·  view source on GitHub ↗

Returns the key for the given index

Source from the content-addressed store, hash-verified

319// Returns the key for the given index
320//
321NormalizedKeyString
322KeyView::GetKey(int index) const
323{
324 // Make sure index is valid
325 if (index < 0 || index >= (int) mNodes.size())
326 {
327 wxASSERT(false);
328 return {};
329 }
330
331 return mNodes[index].key;
332}
333
334//
335// Use to determine if a key can be assigned to the given index

Callers 2

OnHotkeyKillFocusMethod · 0.80
OnSelectedMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected