Back to mods
Toggle Fix project artwork

Modrinth · Minecraft mod

Toggle Fix

Fixes MC-301281: Toggle stats reset when opening screens with mouse-bound keys.

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which Toggle Fix release matches 1.21.9 Fabric?

Updated 5 days ago
Best match for your filters 1.0.0
Game version 1.21.9
Loader Fabric

Toggle Fix 1.0.0 targets 1.21.9 with Fabric. It must be installed on the client. Do not install it on the dedicated server. All 1 required mods have matching files.

Where it goes

Is Toggle Fix required on the client, server, or both?

It must be installed on the client. Do not install it on the dedicated server.

Client Required
Dedicated server Not supported
Loader for this release Fabric
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

This file is marked client-only.

What else does Toggle Fix 1.0.0 need?

1.0.0 on 1.21.9 Fabric. Every mod below is checked against that same setup.

All 1 required mods have matching files

Install Fabric API first. We found matching files for this game-version and loader setup.

Fabric API Needed by Toggle Fix 1.0.0
required
Matching file found Matched file: [1.21.9] Fabric API 0.134.1+1.21.9

We only count dependency files that match this setup. A file for another loader does not fill the gap.

Before you install it

Add Toggle Fix without breaking your instance.

Built for Toggle Fix 1.0.0 on 1.21.9 Fabric. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use 1.0.0. It targets 1.21.9 with Fabric; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    Install Fabric API first. We found matching files for this game-version and loader setup.

  3. 03

    Put it on the correct side

    It must be installed on the client. Do not install it on the dedicated server.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside 1.0.0. It opens that exact file at the source.

About this project

What does Toggle Fix add?

Toggle Fix – Fixes Toggle Sprint for Mouse Buttons (MC‑301281)
Toggle Fix resolves a long‑standing Minecraft issue where Toggle Sprint (and other toggle keybinds) stop working after opening any screen — but only when the keybind is assigned to a mouse button.
Keyboard toggles work fine; mouse toggles do not. This mod fixes that inconsistency.

🎯 What the mod does

⦁ Prevents Minecraft from clearing toggle states when a screen is opened.

⦁ Ensures Toggle Sprint / Toggle Sneak behave identically on keyboard and mouse.

⦁ Fully client‑side and does not affect server behavior.

🧩 Technical explanation

⦁ Minecraft internally resets keybind states when opening screens.

⦁ Keyboard toggles are restored afterward — mouse toggles are not.

Project description from Modrinth.

Pick your setup

Toggle Fix by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

5 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

Toggle Fix versions and loaders

1 of 5 releases match
Clear filters

Looking for an older file? The official Modrinth project page is in Resources.