mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-06-07 09:28:03 +08:00
Fix Focus issue on clicking list view (#5045)
* Focus working after right click * Removed unnecessary focussable setter
This commit is contained in:
parent
e8de6f0ace
commit
45bab578c4
@ -5,7 +5,7 @@
|
|||||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
xmlns:Behaviors="http://schemas.microsoft.com/xaml/behaviors"
|
xmlns:Behaviors="http://schemas.microsoft.com/xaml/behaviors"
|
||||||
mc:Ignorable="d"
|
mc:Ignorable="d"
|
||||||
d:DesignHeight="300"
|
d:DesignHeight="300"
|
||||||
d:DesignWidth="720">
|
d:DesignWidth="720">
|
||||||
|
|
||||||
@ -30,6 +30,7 @@
|
|||||||
<Setter Property="FocusVisualStyle" Value="{StaticResource FocusVisual}"/>
|
<Setter Property="FocusVisualStyle" Value="{StaticResource FocusVisual}"/>
|
||||||
<Setter Property="Foreground" Value="{DynamicResource ControlTextBrushKey}"/>
|
<Setter Property="Foreground" Value="{DynamicResource ControlTextBrushKey}"/>
|
||||||
<Setter Property="BorderThickness" Value="1"/>
|
<Setter Property="BorderThickness" Value="1"/>
|
||||||
|
<Setter Property="Focusable" Value="False"/>
|
||||||
<Setter Property="HorizontalContentAlignment" Value="Center"/>
|
<Setter Property="HorizontalContentAlignment" Value="Center"/>
|
||||||
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
||||||
<Setter Property="Padding" Value="1"/>
|
<Setter Property="Padding" Value="1"/>
|
||||||
@ -88,6 +89,7 @@
|
|||||||
</ControlTemplate>
|
</ControlTemplate>
|
||||||
</Setter.Value>
|
</Setter.Value>
|
||||||
</Setter>
|
</Setter>
|
||||||
|
<Setter Property="Focusable" Value="False" />
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
<Style x:Key="CommandButtonListViewItemContainerStyle" TargetType="ListViewItem">
|
<Style x:Key="CommandButtonListViewItemContainerStyle" TargetType="ListViewItem">
|
||||||
@ -200,8 +202,7 @@
|
|||||||
<TextBlock
|
<TextBlock
|
||||||
Style="{DynamicResource CollapsableTextblock}"
|
Style="{DynamicResource CollapsableTextblock}"
|
||||||
Foreground="{DynamicResource ToolTipForegroundBrushKey}" FontSize="12"
|
Foreground="{DynamicResource ToolTipForegroundBrushKey}" FontSize="12"
|
||||||
Text="{Binding Result.ToolTipData.Text}"
|
Text="{Binding Result.ToolTipData.Text}"
|
||||||
|
|
||||||
TextWrapping="Wrap" />
|
TextWrapping="Wrap" />
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</ToolTip>
|
</ToolTip>
|
||||||
|
Loading…
Reference in New Issue
Block a user