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

Method OnImportDefaults

src/prefs/KeyConfigPrefs.cpp:614–628  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

612}
613
614void KeyConfigPrefs::OnImportDefaults(wxCommandEvent & event)
615{
616 gPrefs->DeleteEntry(wxT("/GUI/Shortcuts/FullDefaults"));
617 gPrefs->Flush();
618
619 mNewKeys = mDefaultKeys;
620 if( event.GetId() == 1 )
621 FilterKeys( mNewKeys );
622
623 for (size_t i = 0; i < mNewKeys.size(); i++) {
624 mManager->SetKeyFromIndex(i, mNewKeys[i]);
625 }
626
627 RefreshBindings(true);
628}
629
630void KeyConfigPrefs::OnHotkeyKeyDown(wxKeyEvent & e)
631{

Callers

nothing calls this directly

Calls 5

GetIdMethod · 0.80
SetKeyFromIndexMethod · 0.80
DeleteEntryMethod · 0.45
FlushMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected