Skip to content

WIP: Enter key confirms branch checkout#110

Open
stdout-se wants to merge 1 commit into
jorio:masterfrom
stdout-se:wip/branch-switch
Open

WIP: Enter key confirms branch checkout#110
stdout-se wants to merge 1 commit into
jorio:masterfrom
stdout-se:wip/branch-switch

Conversation

@stdout-se
Copy link
Copy Markdown
Contributor

The problem
When I double click a commit/branch in the commit graph, I want to be able to quickly just reach over to the enter key and confirm the switch. Right now, the enter key doesn't confirm the dialog.

image

The change
In the "Check out commit" dialog, Return/Enter should accept the default action (e.g. "Switch Branch") instead of toggling the focused radio button.

CheckoutCommitDialog now marks the OK button as default and installs dialog-level shortcuts that click OK when it is enabled.

Note: I kept the commit tagged with WIP to discuss a bit before it's merged.

Questions:

  • Should it be ctrl+enter instead? I think enter still makes sense?
  • Should enter confirm, unless user interacts with dialog options? I think there are some differences between how different desktop environments handle this, it seems to be different between mac, windows, and even different linux desktops...

When switching branches, enter key automatically comfirms dialog.

WIP questions:
- Should it be ctrl+enter?
- Should enter confirm, unless user interacts with dialog options?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant