1
0
mirror of https://github.com/Artemis-RGB/Artemis synced 2025-12-13 05:48:35 +00:00

Gradient editor - Delete stops with DEL key

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

View File

@ -39,6 +39,9 @@
</VisualBrush.Visual>
</VisualBrush>
</UserControl.Resources>
<UserControl.InputBindings>
<KeyBinding Key="Delete" Command="{s:Action RemoveColorStop}" CommandParameter="{Binding SelectedColorStopViewModel}"/>
</UserControl.InputBindings>
<Grid Margin="16">
<Grid.RowDefinitions>
<RowDefinition Height="*" />

View File

@ -281,7 +281,6 @@ namespace Artemis.UI.Screens.SurfaceEditor
// ReSharper disable once UnusedMember.Global - Called from view
public void EditorGridMouseMove(object sender, MouseEventArgs e)
{
((Grid) sender).Focus();
// If holding down Ctrl, pan instead of move/select
if (IsPanKeyDown())
{