<!-- 
RSS generated by JIRA (9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13) at Sun Jan 12 11:54:43 UTC 2025

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>Mojang Studios Jira</title>
    <link>https://bugs.mojang.com</link>
    <description>This file is an XML representation of an issue</description>
    <language>en</language>    <build-info>
        <version>9.12.2</version>
        <build-number>9120002</build-number>
        <build-date>10-01-2024</build-date>
    </build-info>


<item>
            <title>[MC-1519] Key gets stuck when toggling fullscreen</title>
                <link>https://bugs.mojang.com/browse/MC-1519</link>
                <project id="10400" key="MC">Minecraft: Java Edition</project>
                    <description>&lt;p&gt;When pressing down a key (i.e. &quot;W&quot;) and pressing F11 to toggle fullscreen at the same time will cause the action that key handles to continue, when the key is released.&lt;/p&gt;


&lt;p&gt;I expected the action (moving forward) to stop as I released the key.&lt;/p&gt;

&lt;p&gt;What that actually happened was that the action (moving forward) kept on until I pressed another key.&lt;/p&gt;


&lt;p&gt;&lt;b&gt;Steps to Reproduce:&lt;/b&gt;&lt;br/&gt;
1. Press and hold down a key that performs a moving action. Do not release it.&lt;br/&gt;
2. Press F11&lt;br/&gt;
3. Release F11&lt;br/&gt;
4. Release the key you pressed in (1.).&lt;br/&gt;
5. Watch. The movement will not stop.&lt;br/&gt;
6. Press and release another key on your keyboard.&lt;br/&gt;
7. The action stops.&lt;/p&gt;

&lt;h3&gt;&lt;a name=&quot;Codeanalysis&quot;&gt;&lt;/a&gt;Code analysis&lt;/h3&gt;
&lt;p&gt;Based on 1.11 decompiled using MCP 9.35 rc1 and &lt;a href=&quot;https://github.com/LWJGL/lwjgl&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/LWJGL/lwjgl&lt;/a&gt; on 14. December 2016&lt;/p&gt;

&lt;p&gt;When fullscreen mode is toggled the following methods are called in this order:&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;&lt;tt&gt;org.lwjgl.opengl.Display.setFullscreen(boolean)&lt;/tt&gt;&lt;/li&gt;
	&lt;li&gt;&lt;tt&gt;org.lwjgl.opengl.Display.destroyWindow()&lt;/tt&gt;&lt;/li&gt;
	&lt;li&gt;&lt;tt&gt;org.lwjgl.input.Keyboard.destroy()&lt;/tt&gt;&lt;/li&gt;
	&lt;li&gt;&lt;tt&gt;org.lwjgl.input.Keyboard.reset()&lt;/tt&gt;&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;And &lt;a href=&quot;https://github.com/LWJGL/lwjgl/blob/master/src/java/org/lwjgl/input/Keyboard.java#L333&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;&lt;tt&gt;org.lwjgl.input.Keyboard.reset()&lt;/tt&gt;&lt;/a&gt; resets the pressed keys. Therefor the keyboard never registers that the keys which were previously pressed are unpressed now.&lt;br/&gt;
This can be solved in Minecraft by calling the method &lt;tt&gt;net.minecraft.client.settings.KeyBinding.unPressAllKeys()&lt;/tt&gt; before returning from the method &lt;tt&gt;net.minecraft.client.Minecraft.toggleFullscreen()&lt;/tt&gt;.&lt;/p&gt;</description>
                <environment>OS X 10.8.2. Java: newest(JRE7)</environment>
        <key id="12852">MC-1519</key>
            <summary>Key gets stuck when toggling fullscreen</summary>
                <type id="1" iconUrl="https://bugs.mojang.com/secure/viewavatar?size=xsmall&amp;avatarId=18903&amp;avatarType=issuetype">Bug</type>
                                    <status id="5" iconUrl="https://bugs.mojang.com/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="1">Fixed</resolution>
                                        <assignee username="fry">[Mojang] Georgii Gavrichev</assignee>
                                    <reporter username="deuphic">Deuphic</reporter>
                        <labels>
                            <label>controls</label>
                            <label>fullscreen</label>
                            <label>keyboard</label>
                            <label>lwjgl</label>
                    </labels>
                <created>Wed, 31 Oct 2012 21:21:46 +0100</created>
                <updated>Tue, 15 Dec 2020 06:06:02 +0100</updated>
                            <resolved>Wed, 25 Oct 2017 15:38:04 +0200</resolved>
                                    <version>Minecraft 1.4.2</version>
                    <version>Minecraft 1.4.7</version>
                    <version>Snapshot 13w05b</version>
                    <version>Minecraft 1.5</version>
                    <version>Minecraft 1.5.1</version>
                    <version>Minecraft 1.5.2</version>
                    <version>Snapshot 13w18b</version>
                    <version>Snapshot 13w18c</version>
                    <version>Minecraft 1.6.1</version>
                    <version>Minecraft 1.6.2</version>
                    <version>Minecraft 1.6.4</version>
                    <version>Minecraft 13w42b</version>
                    <version>Minecraft 13w43a</version>
                    <version>Minecraft 1.7.1</version>
                    <version>Minecraft 1.7.2</version>
                    <version>Minecraft 1.7.4</version>
                    <version>Minecraft 14w04b</version>
                    <version>Minecraft 1.8</version>
                    <version>Minecraft 1.8.1-pre3</version>
                    <version>Minecraft 1.8.1</version>
                    <version>Minecraft 1.8.8</version>
                    <version>Minecraft 15w40b</version>
                    <version>Minecraft 1.8.9</version>
                    <version>Minecraft 16w02a</version>
                    <version>Minecraft 1.10</version>
                    <version>Minecraft 1.10.2</version>
                    <version>Minecraft 16w32a</version>
                    <version>Minecraft 16w32b</version>
                    <version>Minecraft 16w33a</version>
                    <version>Minecraft 16w35a</version>
                    <version>Minecraft 1.11.2</version>
                    <version>Minecraft 17w06a</version>
                    <version>Minecraft 1.12</version>
                                    <fixVersion>Minecraft 17w43a</fixVersion>
                                                        <votes>7</votes>
                                    <watches>6</watches>
                                                                            <comments>
                            <comment id="863240" author="farogaming" created="Tue, 15 Dec 2020 06:06:02 +0100"  >&lt;p&gt;I don&apos;t know what you mean with &quot;mission control&quot;, but that&apos;s a different bug. This is about actually holding a key manually and the effect (like opening/closing inventory) happening over and over.&lt;/p&gt;</comment>
                            <comment id="863181" author="owlfalls35" created="Tue, 15 Dec 2020 01:43:50 +0100"  >&lt;p&gt;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.&lt;/p&gt;</comment>
                            <comment id="464715" author="luigisauce" created="Thu, 28 Jun 2018 20:26:53 +0200"  >&lt;p&gt;argh this was a great bug and there&apos;s no alternative way in game can this be added as a feature&lt;/p&gt;</comment>
                            <comment id="393240" author="awesomestgamer" created="Sat, 8 Jul 2017 05:21:32 +0200"  >&lt;p&gt;also works when you press F3 instead of F11. If your also holding space, then the player will continue &lt;b&gt;both&lt;/b&gt; jumping and walking&lt;/p&gt;</comment>
                            <comment id="393176" author="alugia" created="Fri, 7 Jul 2017 19:32:36 +0200"  >&lt;p&gt;Confirmed for 1.12&lt;/p&gt;</comment>
                            <comment id="312871" author="farogaming" created="Sat, 11 Jun 2016 23:30:20 +0200"  >&lt;p&gt;Confirmed for 1.10. I want to note that it&apos;s great for afk farming. It can also be done with external tools without exploiting bugs, but it&apos;s easier to do when you don&apos;t have to use those tools.&lt;/p&gt;</comment>
                            <comment id="278835" author="marcono1234" created="Tue, 19 Jan 2016 18:40:14 +0100"  >&lt;p&gt;Confirmed for&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;&lt;b&gt;16w02a&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="216859" author="kingsupernova" created="Sat, 24 Jan 2015 09:20:03 +0100"  >&lt;p&gt;If you just press any button again, the behavior stops.&lt;/p&gt;</comment>
                            <comment id="216851" author="trejkaz" created="Sat, 24 Jan 2015 06:40:13 +0100"  >&lt;p&gt;It certainly affected the gameplay for me, because I wasn&apos;t able to use the mouse anymore after it happened.&lt;/p&gt;
</comment>
                            <comment id="216814" author="kingsupernova" created="Fri, 23 Jan 2015 22:37:59 +0100"  >&lt;p&gt;Confirmed in 1.8.2 pre-4. To be honest, I find this very useful, and as it doesn&apos;t actually affect the gameplay, I would prefer if it were not fixed.&lt;/p&gt;</comment>
                            <comment id="204970" author="galaxy_2alex" created="Fri, 24 Oct 2014 20:05:59 +0200"  >&lt;p&gt;Reproduced in 1.8.1 Pre3 on Windows 8.1.&lt;/p&gt;</comment>
                            <comment id="180622" author="trejkaz" created="Sun, 27 Jul 2014 15:26:37 +0200"  >&lt;p&gt;I can&apos;t speak for this ticket itself, but the issue I reported which was marked as a duplicate (&lt;a href=&quot;https://bugs.mojang.com/browse/MC-39201&quot; title=&quot;Mouse buttons stop working after activating Mission Control&quot; class=&quot;issue-link&quot; data-issue-key=&quot;MC-39201&quot;&gt;&lt;del&gt;MC-39201&lt;/del&gt;&lt;/a&gt;) 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.&lt;/p&gt;</comment>
                            <comment id="180216" author="ezekielelin" created="Sat, 26 Jul 2014 20:43:48 +0200"  >&lt;p&gt;Is this still a concern in the latest Minecraft version &lt;b&gt;14w30c&lt;/b&gt;? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.&lt;/p&gt;</comment>
                            <comment id="118187" author="trejkaz" created="Sat, 9 Nov 2013 03:08:19 +0100"  >&lt;p&gt;I guess this bug&apos;s scope just got wider. It also affects mouse buttons and also occurs when doing actions other than fullscreen.&lt;/p&gt;

&lt;p&gt;And still occurring with the combination of OS X 10.9, Java 7u45, Minecraft 1.7.2.&lt;/p&gt;

&lt;p&gt;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&apos;m not sure if it got back-ported to 7.&lt;/p&gt;</comment>
                            <comment id="63256" author="ristovski" created="Thu, 25 Apr 2013 14:35:34 +0200"  >&lt;p&gt;This might be a LWJGL issue and not a Minecraft one, try updating to the newest version of LWJGL and try again perhaps.&lt;/p&gt;</comment>
                            <comment id="16096" author="meta" created="Wed, 31 Oct 2012 22:57:34 +0100"  >&lt;p&gt;Confirmed&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10102">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="19964">MC-7185</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="44463">MC-25109</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="49440">MC-28952</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="61578">MC-39201</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="62706">MC-40258</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="70554">MC-45325</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="85375">MC-58198</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="103289">MC-75173</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="116893">MC-85293</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="125725">MC-92031</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="146214">MC-105151</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="175203">MC-119251</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="175670">MC-119404</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="187780">MC-122941</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="201664">MC-130133</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10103">
                    <name>Relates</name>
                                            <outwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="197897">MC-128214</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="12171">MC-886</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="50251">MC-29366</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                <customfield id="customfield_10701" key="com.atlassian.jira.plugin.system.customfieldtypes:datetime">
                        <customfieldname>CHK</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 24 Oct 2014 20:05:00 +0200</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10500" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Confirmation Status</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10303"><![CDATA[Confirmed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_11700" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10501" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Game Mode</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10305"><![CDATA[Creative]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_11100" key="com.atlassian.jira.plugin.system.customfieldtypes:float">
                        <customfieldname>Linked</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_11600" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i0gzcn:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    </customfields>
    </item>
</channel>
</rss>