mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 20:27:36 +02:00
Fix ColorPickerEditor keyboard navigation (#14033)
This commit is contained in:
@@ -24,6 +24,7 @@
|
|||||||
Grid.Row="1"
|
Grid.Row="1"
|
||||||
Padding="0"
|
Padding="0"
|
||||||
TabIndex="2"
|
TabIndex="2"
|
||||||
|
KeyboardNavigation.DirectionalNavigation="Contained"
|
||||||
Width="64"
|
Width="64"
|
||||||
AutomationProperties.Name="{x:Static p:Resources.Color_History}"
|
AutomationProperties.Name="{x:Static p:Resources.Color_History}"
|
||||||
HorizontalAlignment="Center"
|
HorizontalAlignment="Center"
|
||||||
@@ -68,6 +69,7 @@
|
|||||||
Height="32"
|
Height="32"
|
||||||
Background="Transparent"
|
Background="Transparent"
|
||||||
VerticalAlignment="Top"
|
VerticalAlignment="Top"
|
||||||
|
KeyboardNavigation.DirectionalNavigation="Contained"
|
||||||
IsHitTestVisible="True">
|
IsHitTestVisible="True">
|
||||||
<e:Interaction.Behaviors>
|
<e:Interaction.Behaviors>
|
||||||
<behaviors:DragWindowBehavior/>
|
<behaviors:DragWindowBehavior/>
|
||||||
@@ -118,8 +120,9 @@
|
|||||||
<StackPanel>
|
<StackPanel>
|
||||||
<ItemsControl IsTabStop="False"
|
<ItemsControl IsTabStop="False"
|
||||||
TabIndex="4"
|
TabIndex="4"
|
||||||
|
KeyboardNavigation.DirectionalNavigation="Contained"
|
||||||
FocusManager.IsFocusScope="True"
|
FocusManager.IsFocusScope="True"
|
||||||
KeyboardNavigation.TabNavigation="Continue"
|
KeyboardNavigation.TabNavigation="Once"
|
||||||
ItemsSource="{Binding ColorRepresentations}">
|
ItemsSource="{Binding ColorRepresentations}">
|
||||||
<ItemsControl.ItemTemplate>
|
<ItemsControl.ItemTemplate>
|
||||||
<DataTemplate>
|
<DataTemplate>
|
||||||
@@ -145,6 +148,7 @@
|
|||||||
Visibility="{Binding ColorsHistory.Count, Converter={StaticResource numberToVisibilityConverter}}"
|
Visibility="{Binding ColorsHistory.Count, Converter={StaticResource numberToVisibilityConverter}}"
|
||||||
IsTabStop="True"
|
IsTabStop="True"
|
||||||
TabIndex="2"
|
TabIndex="2"
|
||||||
|
KeyboardNavigation.DirectionalNavigation="Contained"
|
||||||
SelectedColor="{Binding SelectedColor}"
|
SelectedColor="{Binding SelectedColor}"
|
||||||
SelectedColorChangedCommand="{Binding SelectedColorChangedCommand}"
|
SelectedColorChangedCommand="{Binding SelectedColorChangedCommand}"
|
||||||
Grid.Column="1"
|
Grid.Column="1"
|
||||||
|
|||||||
Reference in New Issue
Block a user