1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-18 17:19:50 +00:00

Resolve conflict with remapping shortcuts (#407)

This commit is contained in:
Laurenz Reinthaler 2020-12-26 20:02:08 +01:00 committed by GitHub
parent 2a7e668976
commit b9c94e1b12
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,9 +27,9 @@ func _input(event : InputEvent) -> void:
if event.is_action_pressed(action):
return
for t in tools: # Handle tool shortcuts
if event.is_action_pressed("right_" + t[1] + "_tool"): # Shortcut for right button (with Alt)
if event.is_action_pressed("right_" + t[1] + "_tool") and !event.control: # Shortcut for right button (with Alt)
Tools.assign_tool(t[0].name, BUTTON_RIGHT)
elif event.is_action_pressed("left_" + t[1] + "_tool"): # Shortcut for left button
elif event.is_action_pressed("left_" + t[1] + "_tool") and !event.control: # Shortcut for left button
Tools.assign_tool(t[0].name, BUTTON_LEFT)