On Keyboards with an "Alt Gr" button (Combines "Ctrl" and "Alt" into one key, replacing "Right Alt"), typing a command runs shortcuts that should only run when pressing "Ctrl + ...".
Partner Rank: 2
Partner Team Reporting: The Misfit Society
Verification builds: 1.14.60, 1.16.0.57
Summary:
On Keyboards with an "Alt Gr" button (Combines "Ctrl" and "Alt" into one key, replacing "Right Alt"), typing a command runs shortcuts that should only run when pressing "Ctrl + ...".
Impact:
The "Alt Gr" button is needed to type characters like @, [], {} and ~ which are very common in commands, causing this bug to appear constantly. This makes development/testing a pain because you are forced to constantly close popping up windows and/or losing focus on the input field.
Repro Steps:
- Type Command: "execute @e[type=rwm:hand] ~ ~ ~ tp @e[tag=under] ~ ~ ~"
I switch to Pocket Edition UI after typing the "P" in "type". After typing the "R" in "rwm" it reloads the entire UI, causing the input field to lose focus and show the PE UI (Change is clearly visible when typing into Command Block because it changes UI window size). Then, typing the "H" of hand, causes the Content Log History window to show and typing the "U" in "under" causes the Minecraft Core Interface to pop up. Lastly when typing the "~" character, I get the UI Debug Screen to show (sometimes unreliably, forcing me to type a bunch of "~" till it finally disappears). (see: attachment_1.gif)
Expected Results:
These shortcuts should only run when actually pressing "Ctrl", not "Alt Gr".
Screenshots/Videos attached: Yes
Regression Builds: N/A
Notes:
- The Problem is mainly caused due to the "Alt Gr" key never releasing. So the bug can also be recreated when tapping the "Alt Gr" button once, whilst pressing no other keys, press a shortcut counterpart key like "H" which will then cause the Content Log History to show.
- The key never releasing becomes clearly visible when typing into a Command Block, since you can tap "Alt Gr" once and repeatedly press "P" followed by "R" to toggle between PC and PE UI (see: attachment_2.gif - After the first reload, the input field loses focus but "Alt Gr" still sticks, allowing for continuos shortcut triggers). It only ever releases when you are forced to close a popup or closing the Minecraft Core Interface by pressing "Ctrl + U" twice. First to release the "Alt Gr", second to actually hide the interface.
- It is recommended to replicate this bug within a Command Block since the UI change is more apparent due to the window size changing. When doing it in Chat it only becomes apparent once you open your inventory or look at the position of health and hunger bar in Gamemode Survival or Adventure.
- The bug appears in both Chat and Command Block input fields.
- My Theory: Since "Alt Gr" combines "Ctrl" and "Alt" into one key but on a US Keyboard it is only "Alt", the "Alt" portion is released while the "Ctrl" portion remains pressed. Since "Ctrl" initiates shortcuts it would explain the observed behavior.