Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 1f26a8a

Browse files
committed
Set keyboard tab order for controls
1 parent 7cc8267 commit 1f26a8a

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed

src/GitHub.VisualStudio.UI/Views/Dialog/Clone/RepositoryCloneView.xaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,26 +26,30 @@
2626
IsDefault="True"
2727
Command="{Binding Clone}"
2828
Content="Clone"
29-
AutomationProperties.AutomationId="{x:Static ghfvs:AutomationIDs.CloneRepositoryButton}"/>
29+
AutomationProperties.AutomationId="{x:Static ghfvs:AutomationIDs.CloneRepositoryButton}"
30+
KeyboardNavigation.TabIndex="3" />
3031

3132
<Button
3233
Margin="6,0,0,0"
3334
HorizontalAlignment="Center"
3435
IsDefault="True"
3536
Command="{Binding Open}"
3637
Content="Open"
37-
AutomationProperties.AutomationId="{x:Static ghfvs:AutomationIDs.OpenRepositoryButton}"/>
38+
AutomationProperties.AutomationId="{x:Static ghfvs:AutomationIDs.OpenRepositoryButton}"
39+
KeyboardNavigation.TabIndex="4 "/>
3840
</StackPanel>
3941

4042
<DockPanel DockPanel.Dock="Bottom" Margin="0,9,0,0">
4143
<Label DockPanel.Dock="Left" Content="{x:Static ghfvs:Resources.localPathText}" />
4244
<Button DockPanel.Dock="Right"
4345
Command="{Binding Browse}"
44-
VerticalContentAlignment="Center">
46+
VerticalContentAlignment="Center"
47+
KeyboardNavigation.TabIndex="6">
4548
Browse...
4649
</Button>
4750
<TextBox Text="{Binding Path, UpdateSourceTrigger=PropertyChanged}" Margin="6,0"
48-
VerticalContentAlignment="Center" />
51+
VerticalContentAlignment="Center"
52+
KeyboardNavigation.TabIndex="5" />
4953
</DockPanel>
5054

5155
<uic:InfoPanel Message="{Binding PathWarning}"

src/GitHub.VisualStudio.UI/Views/Dialog/Clone/SelectPageView.xaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,20 @@
1414
</Control.Resources>
1515

1616
<DockPanel>
17-
<ghfvs:PromptTextBox DockPanel.Dock="Top"
17+
<ghfvs:PromptTextBox Name="SearchTextBox"
18+
DockPanel.Dock="Top"
1819
Margin="0,9"
19-
PromptText="Search or enter a URL"
20-
Text="{Binding Filter, UpdateSourceTrigger=PropertyChanged, Delay=300}"/>
20+
PromptText="Search or enter a URL"
21+
Text="{Binding Filter, UpdateSourceTrigger=PropertyChanged, Delay=300}"
22+
KeyboardNavigation.TabIndex="1" />
2123

2224
<Grid>
2325
<ListView BorderThickness="0"
2426
ItemsSource="{Binding ItemsView}"
2527
SelectedItem="{Binding SelectedItem}"
2628
VirtualizingPanel.IsVirtualizing="True"
27-
VirtualizingPanel.IsVirtualizingWhenGrouping="True">
29+
VirtualizingPanel.IsVirtualizingWhenGrouping="True"
30+
KeyboardNavigation.TabIndex="2">
2831
<ListView.GroupStyle>
2932
<GroupStyle>
3033
<GroupStyle.HeaderTemplate>

0 commit comments

Comments
 (0)