1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-02-20 20:43:14 +00:00

Fix #709 and allow for non-keyboard shortcut bindings for tools

This commit is contained in:
Emmanouil Papadeas 2022-09-22 17:32:07 +03:00
parent 5693a0fe0e
commit 3104e481f0

View file

@ -2,7 +2,9 @@ extends FlowContainer
func _input(event: InputEvent) -> void:
if not Global.has_focus or not event is InputEventKey:
if not Global.has_focus or not Global.can_draw:
return
if event is InputEventMouseMotion:
return
for action in ["undo", "redo"]:
if event.is_action_pressed(action):