Skip to content

Commit

Permalink
disable dragging with keyboard background
Browse files Browse the repository at this point in the history
  • Loading branch information
Aytackydln committed Nov 28, 2024
1 parent 3e1974b commit 87b4ea6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Project-Aurora/Project-Aurora/ConfigUi.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@

<ContentPresenter Margin="6,4,7,6" Grid.Row="1" Content="{Binding SelectedControl}" />
<Viewbox x:Name="KeyboardViewbox" StretchDirection="Both" Margin="0,0,7,0">
<Border Name="KeyboardViewBorder" Margin="5,10,0,0" BorderThickness="1"
<Border Name="KeyboardViewBorder" Margin="5,10,0,0" BorderThickness="1" MouseDown="KeyboardViewBorder_OnMouseDown"
VerticalAlignment="Top" HorizontalAlignment="Left" Background="#A51E1E1E" CornerRadius="8" MinWidth="650" MinHeight="216">
<Grid>
<Grid x:Name="KeyboardGrid" Margin="10,10,10,10" Height="192" VerticalAlignment="Top" HorizontalAlignment="Left" Width="803">
Expand Down
5 changes: 5 additions & 0 deletions Project-Aurora/Project-Aurora/ConfigUi.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -564,4 +564,9 @@ private void ConfigUi_OnClosed(object? sender, EventArgs e)
PerformanceModeModule.UpdatePriority();
});
}

private void KeyboardViewBorder_OnMouseDown(object sender, MouseButtonEventArgs e)
{
e.Handled = true;
}
}

0 comments on commit 87b4ea6

Please sign in to comment.