MC-122477 Fix

Quick rating

Community listing page, reviews here may not be monitored by the author.

MC-122477 Fix

By CardistymoOwner

No reviews yet

Fixes MC-122477 (Linux/GNU: Opening chat sometimes writes 't')

Mod Loaders
Minecraft
26.2

About

Description

MC-122477 Fix

This mod fixes MC-122477 Linux/GNU: Opening chat sometimes writes 't'.

Bug

The bug is caused by an upstream bug in GLFW tracked at GLFW#1794. When the "Open Chat" keybind is pressed the next glfwPollEvents() call should fire a KeyCallback and a CharCallback for the key. Due to the bug the CharCallback isnt fired immediately and instead fires at the next but one glfwPollEvents() call. At this time the ChatScreen might already be open and the character associated with the "Open Chat" keybind (often a "t" is typed into the chat).

Fix

This mod simply cancels the next CharCallback that appears one to three glfwPollEvents() calls after the "Open Chat" or "Open Command" keybind is pressed (only if the chat is actually opened).