Skip to content

A Swiss Army knife for developers.

fixed keyboard navigation

Etienne Baudoux4ec0376c2050
diff --git a/src/dev/impl/DevTools.Common/UI/Controls/CustomTextBox.xaml b/src/dev/impl/DevTools.Common/UI/Controls/CustomTextBox.xaml
index ac3d8de48..68c4e6633 100644
--- a/src/dev/impl/DevTools.Common/UI/Controls/CustomTextBox.xaml
+++ b/src/dev/impl/DevTools.Common/UI/Controls/CustomTextBox.xaml
@@ -40,6 +40,7 @@
x:Name="TextBox"
Grid.Row="1"
Grid.Column="0"
+ TabIndex="1"
IsSpellCheckEnabled="False"
TextWrapping="{x:Bind AcceptsReturn, Mode=OneWay, Converter={StaticResource BooleanToTextWrappingConverter}}"
IsReadOnly="{x:Bind IsReadOnly, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
@@ -56,6 +57,7 @@
x:Name="PasteButton"
x:DeferLoadStrategy="Lazy"
Visibility="Collapsed"
+ TabIndex="0"
Click="PasteButton_Click">
<StackPanel Orientation="Horizontal" Spacing="4">
<FontIcon Glyph="&#xF2D5;"/>
@@ -65,6 +67,7 @@
<Button
x:Name="CopyButton"
x:DeferLoadStrategy="Lazy"
+ TabIndex="2"
Visibility="Collapsed"
Click="CopyButton_Click">
<StackPanel Orientation="Horizontal" Spacing="4">
@@ -78,6 +81,7 @@
x:DeferLoadStrategy="Lazy"
Grid.Row="1"
Grid.Column="1"
+ TabIndex="2"
Margin="8,0,0,0"
Visibility="Collapsed"
ToolTipService.ToolTip="{Binding Instance.Common.Copy, Mode=OneTime, Source={StaticResource LanguageManager}}"
diff --git a/src/dev/impl/DevTools.Providers.Impl/Tools/TextDiff/TextDiffToolPage.xaml b/src/dev/impl/DevTools.Providers.Impl/Tools/TextDiff/TextDiffToolPage.xaml
index f054afd65..14f938d84 100644
--- a/src/dev/impl/DevTools.Providers.Impl/Tools/TextDiff/TextDiffToolPage.xaml
+++ b/src/dev/impl/DevTools.Providers.Impl/Tools/TextDiff/TextDiffToolPage.xaml
@@ -50,18 +50,14 @@
Grid.Column="0"
Grid.Row="0"
Margin="0,0,6,8">
- <TextBlock
- Style="{StaticResource SubTitleTextBlock}"
- Text="Old text"/>
+ <TextBlock Text="Old text"/>
</Grid>
<Grid
Grid.Column="1"
Grid.Row="0"
Margin="6,0,0,8">
- <TextBlock
- Style="{StaticResource SubTitleTextBlock}"
- Text="New text"/>
+ <TextBlock Text="New text"/>
</Grid>
<texteditor:TextEditor
@@ -84,9 +80,7 @@
<Grid
Grid.Row="1"
Margin="0,0,0,8">
- <TextBlock
- Style="{StaticResource SubTitleTextBlock}"
- Text="Difference"/>
+ <TextBlock Text="Difference"/>
</Grid>
<formattedtextblock:FormattedTextBlock