This mod fixes MC-301281, which caused sprint and sneak toggle states to be reset whenever a GUI was opened. This meant that if you have sprint or sneak toggled on, and you open a chest/chat/menu, your sprint and sneak would be toggled off after closing the GUI.
This bug was caused by Mojang's fix for MC-300695 only accounting for keyboard keys, not mouse buttons. The game would incorrectly reset toggle states for any keybind assigned to a mouse button when opening screens, even though mouse buttons don't have the same key-release behavior that caused the original issue.
How to Install Toggle Key Fix (Mod)
Toggle Key Fix by AdyTech99 is verified for Fabric across Minecraft versions 1.21.11 (latest release: 21.11.0, file size: 14 KB). Follow the steps below to install it safely from ModCraft.tv:
- Click the Download button above and select your Minecraft version (1.21.11) and platform (Fabric).
- Make sure you have the compatible loader or environment installed for Fabric.
- Move the downloaded Toggle Key Fix file into your Minecraft
.minecraft/modsfolder and launch the game.