From f302e7ed85d284d2f6a498d7ac308c248425e963 Mon Sep 17 00:00:00 2001 From: Jared Date: Wed, 26 Jun 2024 07:56:02 -0600 Subject: [PATCH] Fix not being able to set keybindings when using keyboard navigation (#1142) --- patches/net/minecraft/client/KeyboardHandler.java.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/net/minecraft/client/KeyboardHandler.java.patch b/patches/net/minecraft/client/KeyboardHandler.java.patch index e3b6d852c1..8f1b17d3cc 100644 --- a/patches/net/minecraft/client/KeyboardHandler.java.patch +++ b/patches/net/minecraft/client/KeyboardHandler.java.patch @@ -15,7 +15,7 @@ ); return; } -+ } else if (p_90897_ == 0 /*GLFW_RELEASE*/ && this.minecraft.screen instanceof KeyBindsScreen) ++ } else if (p_90897_ == 0 /*GLFW_RELEASE*/ && this.minecraft.screen instanceof KeyBindsScreen && net.neoforged.neoforge.client.settings.KeyModifier.getActiveModifier() != net.neoforged.neoforge.client.settings.KeyModifier.NONE) + ((KeyBindsScreen)this.minecraft.screen).selectedKey = null; //Forge: Unset pure modifiers. }