mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-30 00:24:59 +00:00
feature<WorkingCopyChanges>: add the shortcut SPACE to stage/unstage the selected file
This commit is contained in:
parent
f449914e2c
commit
d5cc3c3fa2
2 changed files with 11 additions and 0 deletions
|
@ -28,14 +28,17 @@
|
|||
Visibility="Visible">
|
||||
<TreeView.Resources>
|
||||
<RoutedUICommand x:Key="SelectWholeTreeCommand" Text="SelectWholeTree"/>
|
||||
<RoutedUICommand x:Key="StageChangeCommand" Text="StageChange"/>
|
||||
</TreeView.Resources>
|
||||
|
||||
<TreeView.InputBindings>
|
||||
<KeyBinding Key="A" Modifiers="Ctrl" Command="{StaticResource SelectWholeTreeCommand}"/>
|
||||
<KeyBinding Key="Space" Command="{StaticResource StageChangeCommand}"/>
|
||||
</TreeView.InputBindings>
|
||||
|
||||
<TreeView.CommandBindings>
|
||||
<CommandBinding Command="{StaticResource SelectWholeTreeCommand}" Executed="SelectWholeTree"/>
|
||||
<CommandBinding Command="{StaticResource StageChangeCommand}" Executed="StageChange"/>
|
||||
</TreeView.CommandBindings>
|
||||
|
||||
<controls:Tree.ItemContainerStyle>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue