mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-02-21 21:13:14 +00:00
Fix #709 and allow for non-keyboard shortcut bindings for tools
This commit is contained in:
parent
5693a0fe0e
commit
3104e481f0
1 changed files with 3 additions and 1 deletions
|
@ -2,7 +2,9 @@ extends FlowContainer
|
||||||
|
|
||||||
|
|
||||||
func _input(event: InputEvent) -> void:
|
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
|
return
|
||||||
for action in ["undo", "redo"]:
|
for action in ["undo", "redo"]:
|
||||||
if event.is_action_pressed(action):
|
if event.is_action_pressed(action):
|
||||||
|
|
Loading…
Add table
Reference in a new issue