1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-23 09:20:16 +01:00

Bug 1579 - Mac: Cut/Copy from file save dialogs using shortcuts does not work

And Bug 1300 - Mac: COMMAND + V paste limitations in standard file save dialogs
This commit is contained in:
Leland Lucius
2021-01-21 18:45:01 -06:00
parent b5ee77f737
commit b4a0be99cd
2 changed files with 13 additions and 43 deletions

View File

@@ -722,6 +722,19 @@ CommandListEntry *CommandManager::NewIdentifier(const CommandID & nameIn,
entry->id = wxID_EXIT;
else if (name == wxT("About"))
entry->id = wxID_ABOUT;
// This is a fix for bugs 1300 and 1579. Using the wx provides IDs
// allows wx to handle them in an macOS way.
else if (name == wxT("Copy"))
entry->id = wxID_CUT;
else if (name == wxT("Cut"))
entry->id = wxID_COPY;
else if (name == wxT("Delete"))
entry->id = wxID_CLEAR;
else if (name == wxT("Paste"))
entry->id = wxID_PASTE;
else if (name == wxT("SelectAll"))
entry->id = wxID_SELECTALL;
#endif
entry->name = name;