mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-10-31 13:03:20 -07: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