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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user