From 2ff26a8e2bbdc0b75764d329fcbe54e507aec138 Mon Sep 17 00:00:00 2001 From: Pilzinsel64 Date: Mon, 23 Oct 2023 12:39:32 +0200 Subject: [PATCH] Revert "fix checks for key down & up" This reverts commit 5931b1476bbb0cf26aed54415e01a9fc8ec10f42. --- Pilz.UI/PaintingControl/PaintingControl.vb | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/Pilz.UI/PaintingControl/PaintingControl.vb b/Pilz.UI/PaintingControl/PaintingControl.vb index 669815f..e1a7890 100644 --- a/Pilz.UI/PaintingControl/PaintingControl.vb +++ b/Pilz.UI/PaintingControl/PaintingControl.vb @@ -129,16 +129,10 @@ Public Class PaintingControl Refresh() End Sub - Private Sub CheckKeyDown(sender As Object, e As KeyEventArgs) Handles Me.KeyDown - If e.Shift Then pressedShift = True - If e.Control Then pressedControl = True - If e.Alt Then pressedAlt = True - End Sub - - Private Sub CheckKeyUp(sender As Object, e As KeyEventArgs) Handles Me.KeyUp - If e.Shift Then pressedShift = False - If e.Control Then pressedControl = False - If e.Alt Then pressedAlt = False + Private Sub CheckKeyDown(sender As Object, e As KeyEventArgs) Handles Me.KeyDown, Me.KeyUp + pressedShift = e.Shift + pressedControl = e.Control + pressedAlt = e.Alt End Sub Friend ReadOnly Property AreaSelectionRectangle As RectangleF