1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-07 07:12:34 +02:00

Bug1306: Kestroke shortcuts for sub-menu entries now work again...

... for instance, Align sub-menu of Tracks.
This commit is contained in:
Paul Licameli 2016-01-27 16:10:46 -05:00
parent 08c27ad226
commit 12a2d066ba

View File

@ -884,8 +884,8 @@ CommandListEntry *CommandManager::NewIdentifier(const wxString & name,
// Key from preferences overridse the default key given // Key from preferences overridse the default key given
gPrefs->SetPath(wxT("/NewKeys")); gPrefs->SetPath(wxT("/NewKeys"));
if (gPrefs->HasEntry(name)) { if (gPrefs->HasEntry(entry->name)) {
entry->key = KeyStringNormalize(gPrefs->Read(name, entry->key)); entry->key = KeyStringNormalize(gPrefs->Read(entry->name, entry->key));
} }
gPrefs->SetPath(wxT("/")); gPrefs->SetPath(wxT("/"));
@ -911,7 +911,7 @@ CommandListEntry *CommandManager::NewIdentifier(const wxString & name,
} }
} }
#endif #endif
mCommandNameHash[name] = entry; mCommandNameHash[entry->name] = entry;
if (entry->key != wxT("")) { if (entry->key != wxT("")) {
mCommandKeyHash[entry->key] = entry; mCommandKeyHash[entry->key] = entry;