From 4c7d7da5e7f17e66a1e89235ff49ba0b38788250 Mon Sep 17 00:00:00 2001 From: Emmanouil Papadeas <35376950+OverloadedOrama@users.noreply.github.com> Date: Thu, 14 Nov 2024 01:39:41 +0200 Subject: [PATCH] Fix regression where pressing Enter or Control would not confirm/cancel selection when a selection tool wasn't active --- src/UI/Canvas/Selection.gd | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/UI/Canvas/Selection.gd b/src/UI/Canvas/Selection.gd index 3110734f5..3efe8268e 100644 --- a/src/UI/Canvas/Selection.gd +++ b/src/UI/Canvas/Selection.gd @@ -106,6 +106,11 @@ func _input(event: InputEvent) -> void: image_current_pixel = canvas.current_pixel if Global.mirror_view: image_current_pixel.x = Global.current_project.size.x - image_current_pixel.x + if is_moving_content: + if Input.is_action_just_pressed(&"transformation_confirm"): + transform_content_confirm() + elif Input.is_action_just_pressed(&"transformation_cancel"): + transform_content_cancel() if not project.layers[project.current_layer].can_layer_get_drawn(): return if event is InputEventKey: