mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-24 20:57:19 -08:00
Add Enter as keybinding for staging/unstaging
This commit is contained in:
parent
a573436b67
commit
bb54c14566
1 changed files with 2 additions and 2 deletions
|
@ -62,7 +62,7 @@ namespace SourceGit.Views
|
|||
|
||||
private void OnUnstagedKeyDown(object _, KeyEventArgs e)
|
||||
{
|
||||
if (DataContext is ViewModels.WorkingCopy vm && e.Key == Key.Space)
|
||||
if (DataContext is ViewModels.WorkingCopy vm && e.Key is Key.Space or Key.Enter)
|
||||
{
|
||||
vm.StageSelected();
|
||||
e.Handled = true;
|
||||
|
@ -71,7 +71,7 @@ namespace SourceGit.Views
|
|||
|
||||
private void OnStagedKeyDown(object _, KeyEventArgs e)
|
||||
{
|
||||
if (DataContext is ViewModels.WorkingCopy vm && e.Key == Key.Space)
|
||||
if (DataContext is ViewModels.WorkingCopy vm && e.Key is Key.Space or Key.Enter)
|
||||
{
|
||||
vm.UnstageSelected();
|
||||
e.Handled = true;
|
||||
|
|
Loading…
Reference in a new issue