Audacity Bug Summary
••• Introduction •••
••• Keywords •••
    Audacity 3.0.3 development began 19th April 2021

Audacity Bugzilla



Bug 1579 - Mac: Cut/Copy from file save dialogs using shortcuts does not work
Mac: Cut/Copy from file save dialogs using shortcuts does not work
Status: RESOLVED FIXED
Product: Audacity
Classification: Unclassified
Component: User Interface
2.1.3
Mac macOS
: P2 Repeatable
Assigned To: Default Assignee for New Bugs
: wx3
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-01-22 14:35 UTC by Gale Andrews
Modified: 2021-01-22 10:48 UTC (History)
7 users (show)

See Also:
Steps To Reproduce:
1) Copy some text to the system clipboard. 2) Open an Export or Save Project dialog. 3) Paste into the Save As:, Tags and Search boxes (this requires right-click then Paste for the latter two boxes - bug 1300). 4) Select the text in the Save As: box 5) then COMMAND + X. 6) Observe: The text is not removed or added to the clipboard. 7) COMMAND + C to copy the text. 8) Observe: It is not copied. 9) Repeat Step 4 for the Tags and Search boxes. 10) Observe: no text is cut or copied.
Release Note:
GROUP: Interface * (Mac) '''Copying or cutting from text boxes in file save dialogs using COMMAND + C and COMMAND + X respectively does not work.'''
First Git SHA:
Group: ---
Workaround:
You can right-click or CTRL-click and choose the option to Copy or Cut.
Closed: 2021-01-22 00:00:00
petersampsonaudacity: Accessibility+
gale: Regression+
petersampsonaudacity: Test‑OK‑Win+
petersampsonaudacity: Test‑OK‑Mac+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gale Andrews 2017-01-22 14:35:12 UTC
Regression on 2.1.1.
Comment 1 Peter Sampson 2019-08-11 09:33:48 UTC
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
Comment 2 Peter Sampson 2020-05-11 07:22:33 UTC
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.
Comment 3 Bill Wharrie 2020-06-09 10:44:58 UTC
Upping this to P2 since more complaints received. Still a problem in Audacity_13ec330, June 3 2020.
Comment 4 Peter Sampson 2020-06-28 05:46:20 UTC
(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)
Comment 5 Peter Sampson 2020-06-28 06:01:47 UTC
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.
Comment 6 Paul L 2020-11-20 12:49:44 UTC
(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.
Comment 7 Peter Sampson 2020-11-21 07:19:56 UTC
(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.
Comment 8 Paul L 2020-12-03 19:34:13 UTC
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.
Comment 9 Paul L 2020-12-03 19:39:47 UTC
Commit 58df1342c2495a25b339975d461bac82adebc4b9 pertinent to this but not a sufficient fix
Comment 10 Paul L 2020-12-03 19:41:02 UTC
This bug is NOT very similar to bug 2494, despite appearances.
Comment 11 Paul L 2020-12-03 19:56:24 UTC
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.
Comment 12 Leland Lucius 2021-01-22 00:48:08 UTC
Fixed in:

https://github.com/audacity/audacity/commit/b4a0be9
Comment 13 Peter Sampson 2021-01-22 10:48:57 UTC
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)