enhance: allow to use arrow keys to select changes up/down after stage/unstage previous selected changes by hotkey (#1361)
Some checks are pending
Continuous Integration / Build (push) Waiting to run
Continuous Integration / Prepare version string (push) Waiting to run
Continuous Integration / Package (push) Blocked by required conditions

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo 2025-05-24 21:29:48 +08:00
parent ef53dd0025
commit 22339ab619
No known key found for this signature in database
4 changed files with 20 additions and 11 deletions

View file

@ -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;