Skip to content

Commit

Permalink
Fix regression where pressing Enter or Control would not confirm/canc…
Browse files Browse the repository at this point in the history
…el selection when a selection tool wasn't active
  • Loading branch information
OverloadedOrama committed Nov 13, 2024
1 parent 36329ef commit 4c7d7da
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/UI/Canvas/Selection.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 4c7d7da

Please sign in to comment.