This commit is contained in:
2025-07-20 02:38:29 +10:00

View File

@@ -639,8 +639,9 @@ func _on_background_input_capture_bg_key_pressed(node, keys_pressed):
if settingsMenu.awaitingCostumeInput >= 0: if settingsMenu.awaitingCostumeInput >= 0:
if keyStrings[0] == "Keycode1": # Cancel key assignment if user clicks outside the settings menu
if !settingsMenu.hasMouse: if keyStrings[0] == "Keycode1" and !settingsMenu.hasMouse:
# Don't assign the key, just complete the flow
emit_signal("pressedKey") emit_signal("pressedKey")
return return