Bugzilla – Bug 1579
Mac: Cut/Copy from file save dialogs using shortcuts does not work
Last modified: 2021-01-22 10:48:57 UTC
Regression on 2.1.1.
Testing on 2.3.2 and 2.3.3 alpha jc006 on macOS 10.14.6 At Step 3 I can use the shortcut Cmd+V - Bug #1300 WORKSFORME - but only to paste into the Save As box NOT into the Tags or Search boxes At Step 4 the text is not cut/copied with Cmd+X - rather I get the Mac-boing noise
Testing on macOS 10.15.4 with 2.4.0 RC06 This still does not work. We get a lot of complaints about this on the Forum.
Upping this to P2 since more complaints received. Still a problem in Audacity_13ec330, June 3 2020.
(In reply to Bill Wharrie from comment #3) I confirm this is still the case on Mac Catalina 10.15.5 with 2.4.2 This is not a problem on Windows (but note the Export and Save dialogs differ on Windows and Mac)
And note that this is an accessibility issue for VI and non-mouse users. And most mouse users are commonly accustomed to using keyboard shortcuts for cut&paste as they are common across most apps and used all the time.
(In reply to Peter Sampson from comment #5) Fixing this looks to be beyond my competence. Getting lost in Objective-C code and things that FileDialog delegates to the AppKit. I don't know how I could attach keystroke event handlers to those input fields which are not directly created by wxWidgets.
(In reply to Paul L from comment #6) What really puzzles me about this is that I can paste from the clipboard into a host of Mac apps: Safari, Music, Calendar, Notes, Reminders, Maps, Messages, Pages, Numbers ... And in those where there is a File>Save I can paste from the clipboard into the box for the save target. It is only with Mac that I (and many others who complain on the Forum) that I can't paste like this.
See commits bbd369df1b3c5860ac1145f221c93972c9bac349 and 9036c001521883300c30c8e2d7ef6775dc00f918 which I did in 2016 to accomplish a partial fix for bug 1300, but even this does not work now, whether because of OS or wxWidgets changes since then. I wasn't able to find an easy way to restore the behavior. The fixes I did required diving into Objective-C (yuck) stuff that was platform-specific. It can't be handled nicely at the platform-independent level of wxWidgets. What little Objective-C expertise I acquired then, hasn't stuck with me very well.
Commit 58df1342c2495a25b339975d461bac82adebc4b9 pertinent to this but not a sufficient fix
This bug is NOT very similar to bug 2494, despite appearances.
Removed link to bug 824. That was not at all related to this. That was not platform specific and did not involve cut and paste of text.
Fixed in: https://github.com/audacity/audacity/commit/b4a0be9
Tested on macOS 11.1 Big Sur with Audacity 3.0.0 0123a3e This now works properly, the text placed on the clipboard in Step 1 can be pasted into the Save As in the Export dialog with Cmd+V (or Edit>Paste)