New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make common hotkeys visible as Hotkeys #9898
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
have not run
Hk(RepoObjectsTree.Command.Rename, Keys.F2), | ||
Hk(RepoObjectsTree.Command.Search, Keys.F3), | ||
Hk(RepoObjectsTree.Command.MultiSelect, Keys.Control | Keys.Space), | ||
Hk(RepoObjectsTree.Command.MultiSelectWithChildren, Keys.Control | Keys.Alt | Keys.Space)), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ctrl-Shift instead?
(Is this OK with Alt-Click to select remote/local tracked?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed and updated the PR description.
Shift is generally used as an additive operator, 👍
|
GitUI/CommandsDialogs/FormCommit.cs
Outdated
SelectNext = 19, | ||
SelectNext2 = 20, | ||
SelectNext3 = 21, | ||
SelectPrevious = 22, | ||
SelectPrevious2 = 23, | ||
SelectPrevious3 = 24, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please annotate what these are?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in abe3612 if I got you right.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My guess was that why there are SelectNext , SelectNext2, SelectNext3
There can only be one hotkey for each command and here there are three key combinations for the same thing.
Maybe add a comment about that regardless
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or rather
SelectNext = 19,
SelectNext_AlternativeHotkey1 = 20,
SelectNext_AlternativeHotkey2 = 21,
because these names are visible in the HotkeySettingsPage.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One shortcut change that could be seen as a regression.
Not blocking merge.
Hk(RepoObjectsTree.Command.Delete, Keys.Delete), | ||
Hk(RepoObjectsTree.Command.Rename, Keys.F2), | ||
Hk(RepoObjectsTree.Command.Search, Keys.F3), | ||
Hk(RepoObjectsTree.Command.MultiSelect, Keys.Control | Keys.Space), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This overrides the current (global)shortcut, opening FormCommit
No good suggestion right now...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only the Left Panel is affected. Overriding the hotkey Ctrl+Space
there is intentional because it is the standard hotkey for manipulating multi-selections using the keyboard.
#9723 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It could be seen as a regression for users that do not change focus when submitting
No better suggestion, approving
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
552c590
to
fb70dcc
Compare
Fixes last part of #9861
and #9723 (comment)
Proposed changes
KeyUp
/KeyDown
handlers withHotkey
s forFormCommit
Left Panel
RevisionGridControl
Left Panel
: TranslateCTRL+[SHIFT]+Space
into node click in order to support upcoming multi-selectionScreenshots
After
Test methodology
Test environment(s)
Merge strategy
I agree that the maintainer squash merge this PR (if the commit message is clear).
✒️ I contribute this code under The Developer Certificate of Origin.