Key gets stuck when toggling fullscreen
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().
Environment
OS X 10.8.2. Java: newest(JRE7)
Linked Issues
is duplicated by15
Created Issue:
Key gets stuck when toggling fullscreen
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 excpected 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. WatchThe movement will not stop.
6. Press and release another key on your keyboard.
7. The action stops.
8. Open the coding program
9. Fix the bug
10. Notify mehttps://twitter.com/Deuphic
11. Be proud! You have just fixed a bug in the amazing game "Minecraft"!Please note: I have reported this in Creative, since that was where I discovered it, but I'm sure it happens in survival and adventure mode.
Environment
OS X 10.8.2. Java: newest(JRE7)
Linked Issues
is duplicated by1
TRASH-12316
- Unresolved
- Open
- Public
- Unconfirmed
- Creative
- Action F11 Key Keyboard Stuck fullscreen
- 1.4.2
relates to
is duplicated by
is duplicated by
is duplicated by
is duplicated by
Is this still a concern in the latest Minecraft version 14w03b? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
relates to
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 excpected 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. WatchThe movement will not stop.
6. Press and release another key on your keyboard.
7. The action stops.
8. Open the coding program
9. Fix the bug
10. Notify mehttps://twitter.com/Deuphic
11. Be proud! You have just fixed a bug in the amazing game "Minecraft"!Please note: I have reported this in Creative, since that was where I discovered it, but I'm sure it happens in survival and adventure mode.
is duplicated by
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 excpected 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. WatchThe 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().
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 ex
cpected 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. WatchThe 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().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
TRASH-12316
is duplicated by
is duplicated by
is duplicated by
relates to
is duplicated by
Duplicate of MC-1519, please use the search function to see if your bug has already been submitted. Currently over 57% of tickets are being resolved as duplicate.
Duplicate of MC-1519 - If you have not , please use the search function in the future, to see if your bug has already been submitted. If you could not find the original report, please comment with the keywords you searched for.
Duplicate of MC-1519
Why is this marked as duplicate? MC-1519 is about toggling fullscreen and this is about Mission Control in Mac OS, they are totally different.
Dupe of MC-1519
Thank you for your report!
However, this issue is a Duplicate of MC-1519.
It has been linked to this report. If you have additional information, please add it to that report.
Please search before reporting, as it's likely that one exists already.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – 📖 Game Wiki
Thank you for the report. However, this issue is a duplicate of MC-1519. This bug was fixed in the 1.13 snapshots (although it still affects 1.12.2).
Please note that we can only take reports in English; in this case I was able to understand well enough what you were saying but not everyone here can.
WAI. The original behavior was a bug (MC-1519). 1.13 updated to LWJGL 3 which includes a different way of implementing fullscreen (a borderless window I think); the keys getting stuck behavior is thus no longer present due to that and other changes.
Can confirm on macOS 13.4.1. Seems related to MC-1519.
Confirmed
This might be a LWJGL issue and not a Minecraft one, try updating to the newest version of LWJGL and try again perhaps.
I guess this bug's scope just got wider. It also affects mouse buttons and also occurs when doing actions other than fullscreen.
And still occurring with the combination of OS X 10.9, Java 7u45, Minecraft 1.7.2.
Rafael might be right about it being LWJGL. It could also be Java itself, because there is a similar quirk in AWT/Swing where if you press the mouse on a window and release it outside the window, the application gets a mousePressed but no mouseReleased event. Applications (and frameworks) have been working around it by listening for other events. That issue itself supposed got fixed in Java 8 but I'm not sure if it got back-ported to 7.
Is this still a concern in the latest Minecraft version 14w30c? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.
I can't speak for this ticket itself, but the issue I reported which was marked as a duplicate (
MC-39201) appears to have been fixed some time before 14w30c. The current behaviour is that letting go of the mouse button while Mission Control is up immediately stops the mouse action, so no buttons are down on re-entering Minecraft.Reproduced in 1.8.1 Pre3 on Windows 8.1.
Confirmed in 1.8.2 pre-4. To be honest, I find this very useful, and as it doesn't actually affect the gameplay, I would prefer if it were not fixed.
It certainly affected the gameplay for me, because I wasn't able to use the mouse anymore after it happened.
If you just press any button again, the behavior stops.
Confirmed for
Confirmed for 1.10. I want to note that it's great for afk farming. It can also be done with external tools without exploiting bugs, but it's easier to do when you don't have to use those tools.
Confirmed for 1.12
also works when you press F3 instead of F11. If your also holding space, then the player will continue both jumping and walking
argh this was a great bug and there's no alternative way in game can this be added as a feature
This can still be used by entering mission control while holding the key, like w, then letting go while in mission control, and then exiting mission control. This can be used as an exploit to auto mine by holding left click, using f3+t to reload resource packs, and letting go of left click while it is loading. This will make you keep mining, and then you can do the mission control thing to automatically walk, and you will be mining.
I don't know what you mean with "mission control", but that's a different bug. This is about actually holding a key manually and the effect (like opening/closing inventory) happening over and over.