-
Bug
-
Resolution: Fixed
-
Minecraft 1.4.2, Minecraft 1.4.7, Snapshot 13w05b, Minecraft 1.5, Minecraft 1.5.1, Minecraft 1.5.2, Snapshot 13w18b, Snapshot 13w18c, Minecraft 1.6.1, Minecraft 1.6.2, Minecraft 1.6.4, Minecraft 13w42b, Minecraft 13w43a, Minecraft 1.7.1, Minecraft 1.7.2, Minecraft 1.7.4, Minecraft 14w04b, Minecraft 1.8, Minecraft 1.8.1-pre3, Minecraft 1.8.1, Minecraft 1.8.8, Minecraft 15w40b, Minecraft 1.8.9, Minecraft 16w02a, Minecraft 1.10, Minecraft 1.10.2, Minecraft 16w32a, Minecraft 16w32b, Minecraft 16w33a, Minecraft 16w35a, Minecraft 1.11.2, Minecraft 17w06a, Minecraft 1.12
-
OS X 10.8.2. Java: newest(JRE7)
-
Confirmed
-
Creative
When pressing down a key (i.e. "W") and pressing F11 to toggle fullscreen at the same time will cause the action that key handles to continue, when the key is released.
I expected the action (moving forward) to stop as I released the key.
What that actually happened was that the action (moving forward) kept on until I pressed another key.
Steps to Reproduce:
1. Press and hold down a key that performs a moving action. Do not release it.
2. Press F11
3. Release F11
4. Release the key you pressed in (1.).
5. Watch. The movement will not stop.
6. Press and release another key on your keyboard.
7. The action stops.
Code analysis
Based on 1.11 decompiled using MCP 9.35 rc1 and https://github.com/LWJGL/lwjgl on 14. December 2016
When fullscreen mode is toggled the following methods are called in this order:
- org.lwjgl.opengl.Display.setFullscreen(boolean)
- org.lwjgl.opengl.Display.destroyWindow()
- org.lwjgl.input.Keyboard.destroy()
- org.lwjgl.input.Keyboard.reset()
And org.lwjgl.input.Keyboard.reset() resets the pressed keys. Therefor the keyboard never registers that the keys which were previously pressed are unpressed now.
This can be solved in Minecraft by calling the method net.minecraft.client.settings.KeyBinding.unPressAllKeys() before returning from the method net.minecraft.client.Minecraft.toggleFullscreen().
- is duplicated by
-
MC-7185 keybord, press any key bug
- Resolved
-
MC-25109 Fullscreen mode looks movement keys
- Resolved
-
MC-28952 Freezing mouse (possible to switch over to another window)
- Resolved
-
MC-39201 Mouse buttons stop working after activating Mission Control
- Resolved
-
MC-40258 Walking while toggling full screen makes you keep walking
- Resolved
-
MC-45325 Fullscreening while walking causes you to be stuck walking.
- Resolved
-
MC-58198 Key releases are not registered while toggling fullscreen
- Resolved
-
MC-75173 Auto Run When Entering FullScreen Mode
- Resolved
-
MC-85293 F11 Glitch
- Resolved
-
MC-92031 Sticky keys when switching into/out of full screen
- Resolved
-
MC-105151 it basicly autoclicks on blocks only not other people in minecraft
- Resolved
-
MC-119251 Player continusely walks
- Resolved
-
MC-119404 Autowalk/Autojump glitch.
- Resolved
-
MC-122941 Bug con el F11
- Resolved
-
MC-130133 When tabbed out, auto-clicking bypasses the AFK system
- Resolved
- relates to
-
MC-128214 Toggleing fullscreen doesnt make keys get stuck
- Resolved
-
MC-886 Sticky movement is back...
- Resolved
-
MC-29366 Infinite Jumping
- Resolved