From 589ec8eff851852567beb2c5e69dbe52ee469500 Mon Sep 17 00:00:00 2001 From: Mohammad Shoaib Khan Date: Tue, 23 Aug 2022 08:58:50 +0530 Subject: [PATCH] Bug fix --- stardew-access/Patches/BuildingNAnimalMenuPatches.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stardew-access/Patches/BuildingNAnimalMenuPatches.cs b/stardew-access/Patches/BuildingNAnimalMenuPatches.cs index 2b6d929..910e45b 100644 --- a/stardew-access/Patches/BuildingNAnimalMenuPatches.cs +++ b/stardew-access/Patches/BuildingNAnimalMenuPatches.cs @@ -29,7 +29,7 @@ namespace stardew_access.Patches { int x = Game1.getMouseX(true), y = Game1.getMouseY(true); // Mouse x and y position bool isPrimaryInfoKeyPressed = MainClass.Config.PrimaryInfoKey.JustPressed(); // For narrating animal details - bool isEnterPressed = Game1.input.GetKeyboardState().IsKeyDown(Microsoft.Xna.Framework.Input.Keys.Enter); // For escaping/unselecting from the animal name text box + bool isEscPressed = Game1.input.GetKeyboardState().IsKeyDown(Microsoft.Xna.Framework.Input.Keys.Escape); // For escaping/unselecting from the animal name text box string toSpeak = " ", details = " "; isOnFarm = ___movingAnimal; @@ -40,7 +40,7 @@ namespace stardew_access.Patches { toSpeak = ___textBox.Text; - if (isEnterPressed) + if (isEscPressed) { ___textBox.Selected = false; }