Skip to content

Commit

Permalink
renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
jinek committed Dec 19, 2024
1 parent 2b3bf20 commit 068ba88
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace Consolonia.Themes.Templates.Controls.Helpers
{
internal static class SelectTextWithPointerUpExtension
{
public static readonly AttachedProperty<bool> SelectOnMouseRightUpProperty =
public static readonly AttachedProperty<bool> SelectOnMouseLeftUpProperty =
AvaloniaProperty.RegisterAttached<SelectableTextBlock, bool>(CommonInternalHelper.GetStyledPropertyName(),
typeof(SelectTextWithPointerUpExtension));

Expand All @@ -24,7 +24,7 @@ static SelectTextWithPointerUpExtension()
if (!supportsMouse || supportsMouseMove)
return;

SelectOnMouseRightUpProperty.Changed.SubscribeAction(OnPropertyChanged);
SelectOnMouseLeftUpProperty.Changed.SubscribeAction(OnPropertyChanged);
}

private static void OnPropertyChanged(AvaloniaPropertyChangedEventArgs<bool> args)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
TargetType="SelectableTextBlock">
<Setter Property="SelectionBrush"
Value="{DynamicResource ThemeActionBackgroundBrush}" />
<Setter Property="helpers:SelectTextWithPointerUpExtension.SelectOnMouseRightUp"
<Setter Property="helpers:SelectTextWithPointerUpExtension.SelectOnMouseLeftUp"
Value="True" />
</ControlTheme>
</ResourceDictionary>

0 comments on commit 068ba88

Please sign in to comment.