From 02a74d498c7615bc1b9dfaaaa859f24d8638c870 Mon Sep 17 00:00:00 2001
From: Manolis Papadeas <35376950+OverloadedOrama@users.noreply.github.com>
Date: Mon, 6 Dec 2021 19:11:50 +0200
Subject: [PATCH] Fix shape tool previews not being updated when modifier keys
 are being pressed

---
 src/UI/Canvas/Previews.gd | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/UI/Canvas/Previews.gd b/src/UI/Canvas/Previews.gd
index b93478659..b9db7c26c 100644
--- a/src/UI/Canvas/Previews.gd
+++ b/src/UI/Canvas/Previews.gd
@@ -2,8 +2,14 @@ extends Node2D
 
 
 func _input(event: InputEvent) -> void:
-	if Global.has_focus and event is InputEventMouse:
-		update()
+	if Global.has_focus:
+		if (
+			event is InputEventMouse
+			or event.is_action("shift")
+			or event.is_action("ctrl")
+			or event.is_action("alt")
+		):
+			update()
 
 
 func _draw() -> void: