Screenshot controls on Touch Bar override shortcut behavior

Originator:serge.gebhardt
Number:rdar://35388466 Date Originated:2017-11-07
Status:Closed Resolved:behaves as intended (2017-11-09)
Product:macOS Product Version:10.12.6
Classification:Bug -> UI/Usability Reproducible:Always
 
## Summary:

Option "Touch Bar shows: *App Controls with Control Strip*" is set in
`Preferences → Keyboard`.

When the user invokes the system-wide shortcut to save a screenshot of a
selected area to a file (default: `shift-cmd-4`), then additional screenshot
controls are displayed on the Touch Bar. These settings are persisted and used
as presets for the next invocation. This effectively overrides the default
behavior of the system-wide screenshot shortcuts.

Particularly confusing when an option other than "Touch Bar shows: *App
Controls with Control Strip*" is selected (*Expanded Control Strip* or
*App Controls*). Then the screenshot controls in the Touch Bar won't display at
all, but the last-used settings are still in effect, without any feedback to the
user.

For example, if the user chose to copy the screenshot to the clipboard instead
of saving to a file, then all the system-wide screenshot shortcuts will copy to
clipboard---even for those shortcuts that should explicitly save to file (e.g.
`shift-cmd-4`). Same applies to other screenshot settings selected on the Touch Bar.

## Steps to Reproduce:

1. In the terminal to set the screenshot storage location to the Desktop:
        > defaults write com.apple.screencapture location ~/Desktop
        > killall SystemUIServer

2. Disable applications managing screenshots, such as Dropbox

3. Restore defaults in `Preferences → Keyboard → Shortcuts → Screen Shots` and enable all shortcuts

4. Press `shift-cmd-4` to invoke the "Save picture of selected area as a file" shortcut and take a screenshot of any part of the screen

5. Verify that the screenshot was saved on the Desktop

6. Select "Touch Bar shows: *App Controls with Control Strip*"

7. Press `shift-cmd-4` to invoke the "Save picture of selected area as a file" shortcut (do not select an area of the screen yet)

8. Select "Selected Portion" and "Save to *Clipboard*" in the screenshot controls on the Touch Bar

9. Take a screenshot of any part of the screen

10. Verify that the screenshot was indeed copied to the clipboard by pasting in a Rich Text document in TextEdit

11. Select "Touch Bar shows: *Expanded Control Strip*"

12. Now press `shift-cmd-4` to invoke the "Save picture of selected area as a file" shortcut, verify that there is no feedback on the Touch Bar and take a screenshot of any part of the screen

13. Verify that no screenshot file was saved on the Desktop

14. Verify that the screenshot was copied to the clipboard by pasting in a Rich Text document in TextEdit

## Expected Results:

Last screenshot should be saved to the Desktop (same as first shortcut). No options presented to the user hence default behavior applies.

## Actual Results:

Last screenshot was copied to the clipboard (as set in the Touch Bar
screenshot controls for the previous screenshot).

## Version/Build:

- MacBook Pro (13-inch, 2017, Four Thunderbolt 3 Ports)
- macOS Sierra 10.12.6
    - latest update for Sierra as of time of this writing (2017-11-07)

Comments

Reply by Apple

Apple Developer Relations

November 9 2017, 8:40 PM

This issue behaves as intended.

We are now closing this bug report.

If you have questions about the resolution, or if this is still a critical issue for you, then please update your bug report with that information.

Please be sure to regularly check new Apple releases for any updates that might affect this issue.

By serge.gebhardt at Nov. 10, 2017, 10:57 a.m. (reply...)

Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!