mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-21 18:35:00 +00:00
enhance: allow to use arrow keys to select changes up/down after stage/unstage previous selected changes by hotkey (#1361)
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
ef53dd0025
commit
22339ab619
4 changed files with 20 additions and 11 deletions
|
@ -51,7 +51,7 @@ namespace SourceGit.Views
|
|||
{
|
||||
var next = UnstagedChangesView.GetNextChangeWithoutSelection();
|
||||
vm.StageSelected(next);
|
||||
UnstagedChangesView.Focus();
|
||||
UnstagedChangesView.TakeFocus();
|
||||
e.Handled = true;
|
||||
}
|
||||
}
|
||||
|
@ -62,7 +62,7 @@ namespace SourceGit.Views
|
|||
{
|
||||
var next = StagedChangesView.GetNextChangeWithoutSelection();
|
||||
vm.UnstageSelected(next);
|
||||
StagedChangesView.Focus();
|
||||
StagedChangesView.TakeFocus();
|
||||
e.Handled = true;
|
||||
}
|
||||
}
|
||||
|
@ -75,7 +75,7 @@ namespace SourceGit.Views
|
|||
{
|
||||
var next = UnstagedChangesView.GetNextChangeWithoutSelection();
|
||||
vm.StageSelected(next);
|
||||
UnstagedChangesView.Focus();
|
||||
UnstagedChangesView.TakeFocus();
|
||||
e.Handled = true;
|
||||
return;
|
||||
}
|
||||
|
@ -94,7 +94,7 @@ namespace SourceGit.Views
|
|||
{
|
||||
var next = StagedChangesView.GetNextChangeWithoutSelection();
|
||||
vm.UnstageSelected(next);
|
||||
StagedChangesView.Focus();
|
||||
StagedChangesView.TakeFocus();
|
||||
e.Handled = true;
|
||||
}
|
||||
}
|
||||
|
@ -105,7 +105,7 @@ namespace SourceGit.Views
|
|||
{
|
||||
var next = UnstagedChangesView.GetNextChangeWithoutSelection();
|
||||
vm.StageSelected(next);
|
||||
UnstagedChangesView.Focus();
|
||||
UnstagedChangesView.TakeFocus();
|
||||
}
|
||||
|
||||
e.Handled = true;
|
||||
|
@ -117,7 +117,7 @@ namespace SourceGit.Views
|
|||
{
|
||||
var next = StagedChangesView.GetNextChangeWithoutSelection();
|
||||
vm.UnstageSelected(next);
|
||||
StagedChangesView.Focus();
|
||||
StagedChangesView.TakeFocus();
|
||||
}
|
||||
|
||||
e.Handled = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue