mojira.dev
MC-127862

"Alt Gr" key makes "Ctrl" locked

"Alt Gr" is equal to pressing "Alt" + "Ctrl". Now, if you hold "Alt Gr" for something like a second, it will be as if you released "Alt" but NOT "Ctrl".

Using an AZERTY keyboard, "Alt Gr" is needed for several characters that are useful for commands : " ~ " , "@" , " ^ " , "{ }" and "[ ]"

 

Because it simulates a locked "Ctrl", actions like deleting text or moving the cursor with arrows will be work "word by word" instead of "character by character". For example :

/give @a[distance=..10,limit=5,sort=random] minecraft:blue_wool

First, if you do a typo, you're likely to not realise about the bug and delete the whole argument, if not several of them (here, write "blue_wiil" and you have what you need to delete literally everything. Although the most annoying is often when deleting a target selector).

Now, if you want to change to "red_wool", and / or something in the target selector maybe, you will have write the whole argument again (but the most annoying is really when you delete everything just because you didn't realise the bug was there. While most people probably won't even understand what the bug is)

 

Another problem is that Ctrl + A selects the whole text, but the game then still writes the letter too. So because of that, whenever you press the letter "A", everything you wrote will be replaced by "a". It took me quite some time to realize that because of MC-121278.

But what it means is : if MC-121278 is solved before this one is, it will become far, FAR worse than it is now ! (as long as it's not solved, it is the letter "q" that is a real problem, but it is rather uncommon. Which is not at all the case of the letter "a")

 

Pressing "v" can be annoying too, but at least it won't make you lose everything, it's a less common letter, and if you pressed "c" or "x" before, you won't notice anything. Unless you needed for later use what you last copied, since you won't have anymore anything to paste. Anywhere).

 

Notes :

1) There is a way to stop this bug : Press the LEFT "Ctrl" key (the right one does nothing. At least for me).

2) While holding "Alt Gr", pressing another key before the bug starts ensures that it will never start (until you release then hold again "Alt Gr").

3) The bug seems to be related to a "bad" framerate (including minor / average fps drops while otherwise having a good framerate), and maybe lag spikes, although the bug never seems to start instantaneously (and a lag spike is pretty short).

Linked issues

MC-132018 Holding AltGr while quickly moving your mouse results in the Ctrl-key being stuck Resolved MC-137651 Chat command type bug Resolved MC-137886 By pressing "A" in the Command Block, the Chat resets. Resolved MC-145666 Chat cleared when pressing letter "a" Resolved MC-157451 Ctrl occasionaly gets stuck after writing polish letters Resolved

Comments 53

Uriel Salischiker

Have you tried with other keyboards? Does it happens everywhere or just Minecraft? Might be an accesibility setting

Just tried with another keyboard, it does the same (that's the same layout though, so I wasn't expecting much). I already tried to switch to QWERTY using Shift + Alt, too, but it doesn't work in Minecraft (even if I do that while on the desktop then go back to Minecraft, my keyboard is back to AZERTY), so I don't think I can test much more by myself.

And yes, it does that only on Minecraft (and never noticed that in 1.12.2 or before, so I assume it wasn't doing that there).

Uriel Salischiker

AltGr is equal to pressing Ctrl+Alt, so the control key might stay pressed to the game even though you stopped pressing AltGr

Had in mind that it was equal to Ctrl + Shift (thinking about it, I'm stupid. It's ALT Gr, after all ^^' ), so that was what I tried. Just tried again with Alt instead of Shift then, and both with left and right Ctrl, and it doesn't lock Ctrl (I'm not going to do Ctrl + Alt instead of Alt gr though). No matters if I press Ctrl first or Alt first.

In any case, the control key staying virtually pressed is what I though too (now, why it does that ? Would be great to know if other people with AZERTY layout have this issue as well, and even more if there are people with a QWERTY layout that have it too)

PS : Actually just thought of a test I could do : Removing the AZERTY layout from my computer to leave only the QWERTY one, so that the game cannot change back to AZERTY (tried first to only make QWERTY as main keyboard but it wasn't enough). Even though I'd still like to see if it does that to other people too, the result here is that the bug stil occurs, in QWERTY as well.

Still in 1.13pre1

43 more comments

Confirmed for 1.21 on Windows 11 QWERTY Spanish Layout
This bug has been bothering me for a long time

 

 

Confirmed for 1.21 on Windows 11 Azerty French Layout
The bug is still there and it is very annoying when trying to create commands and command blocks.

This also happens in 1.20.1 with QWERTY tr keyboard layout

Can confirm in 24w39a

On Qwerty too in 1.21.1

Azkunki

(Unassigned)

Confirmed

Platform

Normal

Input

Minecraft 18w11a, Minecraft 18w19b, Minecraft 18w22c, Minecraft 1.13-pre1, Minecraft 1.13-pre2, ..., 1.20.6, 24w33a, 1.21.4, 25w05a, 1.21.8

Retrieved