From b4384f4085ef451f0ac8a3a8a1fb4ccadef2e0cb Mon Sep 17 00:00:00 2001 From: Emmanouil Papadeas <35376950+OverloadedOrama@users.noreply.github.com> Date: Sat, 13 Jul 2024 20:38:29 +0300 Subject: [PATCH] When using the canvas, release focus of other GUI elements of the application --- src/UI/Canvas/CanvasCamera.gd | 1 + 1 file changed, 1 insertion(+) diff --git a/src/UI/Canvas/CanvasCamera.gd b/src/UI/Canvas/CanvasCamera.gd index e4ff317ed..89a4b8130 100644 --- a/src/UI/Canvas/CanvasCamera.gd +++ b/src/UI/Canvas/CanvasCamera.gd @@ -60,6 +60,7 @@ func _ready() -> void: func _input(event: InputEvent) -> void: + get_window().gui_release_focus() if !Global.can_draw: drag = false return