Revert "fix checks for key down & up"

This reverts commit 5931b1476b.
This commit is contained in:
2023-10-23 12:39:32 +02:00
parent c3765f9729
commit 2ff26a8e2b

View File

@@ -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