MC-122477 修复
本模组修复了 MC-122477:在 Linux/GNU 系统中,打开聊天窗口时有时会误输入字母 't'。
问题
该问题由 GLFW 上游的一个已知 bug 引起,跟踪地址为 GLFW#1794。当按下“打开聊天”键位绑定后,下一次 glfwPollEvents() 调用应触发对应按键的 KeyCallback 和 CharCallback。由于此 bug,CharCallback 不会立即触发,而是在随后的第二次 glfwPollEvents() 调用时才触发。此时聊天屏幕可能已经打开,因此与“打开聊天”键位绑定的字符(通常是 "t")会被输入到聊天框中。
修复
本模组通过取消在按下“打开聊天”或“打开命令”键位绑定后的 1 到 3 次 glfwPollEvents() 调用中出现的下一个 CharCallback 来解决问题(仅在聊天窗口实际打开的情况下生效)。
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).
下载 MC-122477 Fix
下载 MC-122477 Fix
下载 MC-122477 Fix
下载 MC-122477 Fix
下载 MC-122477 Fix
暂无更新日志
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧