Skip to content

Commit

Permalink
Fix #709 and allow for non-keyboard shortcut bindings for tools
Browse files Browse the repository at this point in the history
  • Loading branch information
OverloadedOrama committed Sep 22, 2022
1 parent 5693a0f commit 3104e48
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/UI/ToolButtons.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 3104e48

Please sign in to comment.