Gradient editor - Delete stops with DEL key

Surface editor - Fixed editor taking focus on mouse over
This commit is contained in:
Robert committed 2021-03-14 22:23:25 +01:00
1 parent a57612adb7
commit dddfca2b09
2 files changed
+3 -1

No files matched your search

@@ -39,6 +39,9 @@
</VisualBrush.Visual> </VisualBrush.Visual>
</VisualBrush> </VisualBrush>
</UserControl.Resources> </UserControl.Resources>
<UserControl.InputBindings>
<KeyBinding Key="Delete" Command="{s:Action RemoveColorStop}" CommandParameter="{Binding SelectedColorStopViewModel}"/>
</UserControl.InputBindings>
<Grid Margin="16"> <Grid Margin="16">
<Grid.RowDefinitions> <Grid.RowDefinitions>
<RowDefinition Height="*" /> <RowDefinition Height="*" />
@@ -281,7 +281,6 @@ namespace Artemis.UI.Screens.SurfaceEditor
// ReSharper disable once UnusedMember.Global - Called from view // ReSharper disable once UnusedMember.Global - Called from view
public void EditorGridMouseMove(object sender, MouseEventArgs e) public void EditorGridMouseMove(object sender, MouseEventArgs e)
{ {
((Grid) sender).Focus();
// If holding down Ctrl, pan instead of move/select // If holding down Ctrl, pan instead of move/select
if (IsPanKeyDown()) if (IsPanKeyDown())
{ {