1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-02-21 13:03:13 +00:00

Fix bug where using shortcuts to switch between frames also moved the selection, causing deletions

This commit is contained in:
Emmanouil Papadeas 2023-11-26 14:06:02 +02:00
parent 83871a5c93
commit 42b0f4f0c1

View file

@ -219,7 +219,7 @@ func _move_with_arrow_keys(event: InputEvent) -> void:
# Check if an event is a ui_up/down/left/right event-press
func _is_action_direction_pressed(event: InputEvent) -> bool:
for action in KEY_MOVE_ACTION_NAMES:
if event.is_action_pressed(action):
if event.is_action_pressed(action, false, true):
return true
return false
@ -227,7 +227,7 @@ func _is_action_direction_pressed(event: InputEvent) -> bool:
# Check if an event is a ui_up/down/left/right event release
func _is_action_direction(event: InputEvent) -> bool:
for action in KEY_MOVE_ACTION_NAMES:
if event.is_action(action):
if event.is_action(action, true):
return true
return false
@ -235,7 +235,7 @@ func _is_action_direction(event: InputEvent) -> bool:
# Check if an event is a ui_up/down/left/right event release
func _is_action_direction_released(event: InputEvent) -> bool:
for action in KEY_MOVE_ACTION_NAMES:
if event.is_action_released(action):
if event.is_action_released(action, true):
return true
return false