Skip to content

Commit 8a20a7a

Browse files
committed
ux: set Focusable by XAML instead of hard coded
1 parent ea3a6a4 commit 8a20a7a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Views/ChangeCollectionView.axaml.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ public event EventHandler<RoutedEventArgs> ChangeDoubleTapped
9696

9797
public ChangeCollectionView()
9898
{
99-
Focusable = true;
10099
InitializeComponent();
101100
}
102101

src/Views/WorkingCopy.axaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
<!-- Unstaged Changes -->
6666
<v:ChangeCollectionView Grid.Row="1"
6767
x:Name="UnstagedChangesView"
68+
Focusable="True"
6869
IsUnstagedChange="True"
6970
SelectionMode="Multiple"
7071
Background="{DynamicResource Brush.Contents}"
@@ -100,6 +101,7 @@
100101
<!-- Staged Changes -->
101102
<v:ChangeCollectionView Grid.Row="3"
102103
x:Name="StagedChangesView"
104+
Focusable="True"
103105
SelectionMode="Multiple"
104106
Background="{DynamicResource Brush.Contents}"
105107
ViewMode="{Binding Source={x:Static vm:Preference.Instance}, Path=StagedChangeViewMode}"

0 commit comments

Comments
 (0)