From a255209fe1b004e25d8b85aeaeb53ddbea15ff4d Mon Sep 17 00:00:00 2001 From: Tyfon <29051038+tyfon7@users.noreply.github.com> Date: Wed, 15 May 2024 02:26:40 -0700 Subject: [PATCH] Confirm dialogs with space --- Patches/DialogPatches.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Patches/DialogPatches.cs b/Patches/DialogPatches.cs index 3e8234f..dcb5c21 100644 --- a/Patches/DialogPatches.cs +++ b/Patches/DialogPatches.cs @@ -39,7 +39,7 @@ namespace UIFixes return; } - if (Input.GetKeyDown(KeyCode.Return) || Input.GetKeyDown(KeyCode.KeypadEnter)) + if (Input.GetKeyDown(KeyCode.Return) || Input.GetKeyDown(KeyCode.KeypadEnter) || Input.GetKeyDown(KeyCode.Space)) { AcceptMethod.Invoke(__instance, []); return;