From ab6e1bc384d70c90235e2f79ff3757a9aea6c34b Mon Sep 17 00:00:00 2001 From: OverloadedOrama <35376950+OverloadedOrama@users.noreply.github.com> Date: Tue, 14 Apr 2020 17:03:16 +0300 Subject: [PATCH] Fixed issue with undo/redo selecting the Zoom tool If undo, redo or redo_secondary are pressed, no tool won't be selected. --- Scripts/Main.gd | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Scripts/Main.gd b/Scripts/Main.gd index 6bd3248c5..bde9bdb2e 100644 --- a/Scripts/Main.gd +++ b/Scripts/Main.gd @@ -205,6 +205,8 @@ func _input(event : InputEvent) -> void: redone = false if Global.has_focus: + if event.is_action_pressed("undo") or event.is_action_pressed("redo") or event.is_action_pressed("redo_secondary"): + return for t in tools: # Handle tool shortcuts if event.is_action_pressed(t[2]): # Shortcut for right button (with Alt) _on_Tool_pressed(t[0], false, false)