Merge pull request #2 from litruv/copilot/fix-1

Fix costume key assignment regression - resolves "awaiting input" hang
This commit is contained in:
litruv authored and GitHub committed 2025-07-20 02:31:13 +10:00
commit f9c72448d9
1 file changed
+3 -2
+3 -2
View File
@@ -674,8 +674,9 @@ func _on_background_input_capture_bg_key_pressed(node, keys_pressed):
if settingsMenu.awaitingCostumeInput >= 0:
if keyStrings[0] == "Keycode1":
if !settingsMenu.hasMouse:
# Cancel key assignment if user clicks outside the settings menu
if keyStrings[0] == "Keycode1" and !settingsMenu.hasMouse:
# Don't assign the key, just complete the flow
emit_signal("pressedKey")
return