mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-19 01:29:49 +00:00
Fixed issue with undo/redo selecting the Zoom tool
If undo, redo or redo_secondary are pressed, no tool won't be selected.
This commit is contained in:
parent
cb04498420
commit
ab6e1bc384
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue