Skip to content

Discard all shortcut#7650

Merged
shiftkey merged 6 commits intodesktop:developmentfrom
say25:Discard-All-Shortcut
Jun 6, 2019
Merged

Discard all shortcut#7650
shiftkey merged 6 commits intodesktop:developmentfrom
say25:Discard-All-Shortcut

Conversation

@say25
Copy link
Member

@say25 say25 commented May 30, 2019

Overview

Closes #7588

Description

  • Adds menu item shortcut to "Discard all Changes" (Cmd/Ctrl+Shift+Delete)
  • Removes some extra const string declarations

Release notes

Notes: Adds menu item shortcut to "Discard all Changes"

@say25 say25 added the ready-for-review Pull Requests that are ready to be reviewed by the maintainers label May 30, 2019
@tierninho
Copy link
Contributor

@say25 Thanks for adding this shortcut -works as me 👍

One clarification, did you mean to use "Delete-right" as it means the use of the function key is also required (at least for Mac).
Screen Shot 2019-05-30 at 8 59 27 AM

Reference:
Screen Shot 2019-05-30 at 8 58 42 AM

We do use the same delete key for removing a repository, but perhaps we meant to use the delete-left key? Can @desktop/engineering confirm?

@say25
Copy link
Member Author

say25 commented May 31, 2019

@tierninho I was mostly going for consistency. At the same time, CMD+Shift+Left Delete in Finder is empty trash maybe that makes more sense?

@say25 say25 closed this May 31, 2019
@say25 say25 reopened this May 31, 2019
@shiftkey
Copy link
Member

Can @desktop/engineering confirm?

I'm honestly not fussed about what shortcut ends up being chosen here, but I'd like the reviewer(s) involved with this to test this on macOS and Windows and verify that:

  • the shortcut makes sense to the user
  • the shortcut does fire when the keyboard shortcut is pressed

Linux testing too would be desirable, but I suspect it'll overlap with how Windows handles this so it's not required.

@tierninho
Copy link
Contributor

My only worry was that the average user has no idea what left- and right-delete are.

Suggestion is we change both Remove Repository and Discard all to left-delete for simplicity. I assume this only affects Mac. @say25 ok to update your PR?

I was mostly going for consistency. At the same time, CMD+Shift+Left Delete in Finder is empty trash maybe that makes more sense?

👍

@say25
Copy link
Member Author

say25 commented May 31, 2019

I don't mind making the tweak. If we are to change the shortcuts, should the shift modifier go with Remove Repository or Discard All?

@tierninho
Copy link
Contributor

Thanks for helping.

should the shift modifier go with Remove Repository or Discard All?

"Discard all Changes" (Cmd/Ctrl+Shift+Delete)
"Remove Repos" (Cmd/Ctrl+Delete)

@agisilaos
Copy link
Member

While going through this PR I thought the same thing as @tierninho.

My only worry was that the average user has no idea what left- and right-delete are.

@shiftkey
Copy link
Member

shiftkey commented Jun 3, 2019

@say25 tested this out on macOS and Windows and I'm happy with standardizing this on CmdOrCtrl(+Shift)+Backspace given the previous confusion discussed.

I'll let this sit a couple of days and see if @desktop/engineering or @desktop/quality-assurance have any additional feedback or suggestions.

@shiftkey shiftkey self-assigned this Jun 3, 2019
@tierninho tierninho self-requested a review June 3, 2019 18:56
Copy link
Contributor

@tierninho tierninho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! thanks again @say25 !

@shiftkey shiftkey mentioned this pull request Jun 5, 2019
3 tasks
@shiftkey shiftkey merged commit 4629162 into desktop:development Jun 6, 2019
@say25 say25 deleted the Discard-All-Shortcut branch June 6, 2019 15:38
@say25 say25 mentioned this pull request Jun 11, 2019
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-review Pull Requests that are ready to be reviewed by the maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a Keyboard shortcut for "Discarding All Changes"

5 participants