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

Commit 1baf474

Browse files
committed
Stop using custom DefaultContextMenu
Because a custom context menu was being used, the spell check context menu items weren't appearing. Our custom DefaultContextMenu was showing Cut, Copy and Paste (the same as the normal default).
1 parent 63a1ee3 commit 1baf474

File tree

3 files changed

+0
-9
lines changed

3 files changed

+0
-9
lines changed

src/GitHub.UI/Assets/Controls.xaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,6 @@
1919
Styles for standard windows controls
2020
-->
2121

22-
<ContextMenu x:Key="DefaultContextMenu">
23-
<MenuItem Header="Cut" Command="ApplicationCommands.Cut"/>
24-
<MenuItem Header="Copy" Command="ApplicationCommands.Copy"/>
25-
<MenuItem Header="Paste" Command="ApplicationCommands.Paste"/>
26-
</ContextMenu>
27-
<!--End ContextMenu-->
28-
2922
<!-- ProgressBar -->
3023
<Style x:Key="GitHubProgressBar" TargetType="{x:Type ui:GitHubProgressBar}">
3124
<Setter Property="Foreground" Value="#999999" />

src/GitHub.UI/Assets/Controls/FilterTextBox.xaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
<Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst"/>
1515
<Setter Property="Stylus.IsFlicksEnabled" Value="False"/>
1616
<Setter Property="Padding" Value="3,3,18,3" />
17-
<Setter Property="ContextMenu" Value="{DynamicResource DefaultContextMenu}" />
1817
<Setter Property="Template">
1918
<Setter.Value>
2019
<ControlTemplate TargetType="{x:Type ui:FilterTextBox}">

src/GitHub.UI/Assets/TextBlocks.xaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
<Setter Property="BorderThickness" Value="1" />
1616
<Setter Property="ToolTipService.ShowDuration" Value="30000" />
1717
<Setter Property="ToolTipService.ShowOnDisabled" Value="True" />
18-
<Setter Property="ContextMenu" Value="{DynamicResource DefaultContextMenu}" />
1918
<Setter Property="Template">
2019
<Setter.Value>
2120
<ControlTemplate TargetType="{x:Type TextBox}">

0 commit comments

Comments
 (0)