mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-31 07:29:49 +00:00
Resolve conflict with remapping shortcuts (#407)
This commit is contained in:
parent
2a7e668976
commit
b9c94e1b12
|
@ -27,9 +27,9 @@ func _input(event : InputEvent) -> void:
|
||||||
if event.is_action_pressed(action):
|
if event.is_action_pressed(action):
|
||||||
return
|
return
|
||||||
for t in tools: # Handle tool shortcuts
|
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)
|
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)
|
Tools.assign_tool(t[0].name, BUTTON_LEFT)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue