mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-02-20 12:33:14 +00:00
Fix macOS crash
This commit is contained in:
parent
30f9a3875d
commit
90d2473f52
1 changed files with 4 additions and 1 deletions
|
@ -364,7 +364,10 @@ func _use_osx_shortcuts() -> void:
|
|||
var inputmap := InputMap
|
||||
|
||||
for action in inputmap.get_actions():
|
||||
var event: InputEvent = inputmap.get_action_list(action)[0]
|
||||
var action_list: Array = inputmap.get_action_list(action)
|
||||
if action_list.size() == 0:
|
||||
continue
|
||||
var event: InputEvent = action_list[0]
|
||||
|
||||
if event.is_action("show_pixel_grid"):
|
||||
event.shift = true
|
||||
|
|
Loading…
Add table
Reference in a new issue