EscFix
A lightweight client-side mod that fixes the inability to close GUIs on mobile Minecraft launchers such as MojoLauncher and PojavLauncher.
The problem Mobile launchers like MojoLauncher and PojavLauncher intercept the Android Back button at the system level and never pass it to the game as ESC. On top of that, both launchers don't allow you to bind the ESC key to an on-screen button - any attempt to assign it automatically gets replaced with Back. This makes it impossible to close any mod GUI that relies on ESC to exit, such as item radial menus, custom config screens, or any mod that doesn't provide its own close button.
The fix EscFix listens to keyboard events directly inside open GUIs and closes the screen when it detects the 0 + Back combo - before the launcher can interfere.
How to use
- In your launcher's on-screen button settings, create a combo button that sends both Back and 0 simultaneously
- Open any GUI in-game
- Tap that button - the GUI will close
Creating a combo on-screen button is the most convenient way to use this mod on mobile, since holding two separate buttons while playing can be awkward.
Compatibility
- ✅ Minecraft Any version
- ✅ MojoLauncher
- ✅ PojavLauncher
- ✅ Any other launcher that remaps Back to key 1
- ✅ Client-side only - no server installation needed
- ✅ Compatible with all mods that use standard Forge GUI system
Technical details
The mod hooks into GuiScreenEvent.KeyboardInputEvent.Pre - a Forge event that fires before the GUI processes input. When the combo is detected, the event is cancelled (preventing any other action) and the current screen is closed via reflection, making it compatible even with obfuscated builds.
Featured versions
See allProject members

Rythnar-GRED
Owner