-
Bug
-
Resolution: Unresolved
-
None
-
Minecraft 17w43a, Minecraft 17w43b, Minecraft 17w45a, Minecraft 17w47b, Minecraft 17w50a, Minecraft 18w01a, Minecraft 18w02a, Minecraft 18w07c, Minecraft 18w10d, Minecraft 18w16a, Minecraft 18w21a, Minecraft 18w22a, Minecraft 1.13-pre1, Minecraft 1.13-pre2, Minecraft 1.13-pre4, Minecraft 1.13-pre5, Minecraft 1.13-pre6, Minecraft 1.13-pre7, Minecraft 1.13-pre8, Minecraft 1.13-pre9, Minecraft 1.13-pre10, Minecraft 1.13, Minecraft 18w30a, Minecraft 18w30b, Minecraft 18w31a, Minecraft 18w32a, Minecraft 18w33a, Minecraft 1.13.1-pre1, Minecraft 1.13.1, Minecraft 1.13.2-pre1, Minecraft 1.13.2-pre2, Minecraft 1.13.2, Minecraft 18w43a, Minecraft 18w43b, Minecraft 18w43c, Minecraft 18w44a, Minecraft 18w46a, Minecraft 18w47a, Minecraft 18w48a, Minecraft 18w48b, Minecraft 18w49a, Minecraft 18w50a, Minecraft 19w04a, Minecraft 19w04b, Minecraft 19w05a, Minecraft 19w06a, Minecraft 19w07a, Minecraft 19w08a, Minecraft 19w09a, Minecraft 19w11a, Minecraft 19w11b, Minecraft 19w12a, Minecraft 19w12b, Minecraft 19w13a, Minecraft 19w14a, Minecraft 1.14 Pre-Release 1, Minecraft 1.14 Pre-Release 2, Minecraft 1.14 Pre-Release 3, Minecraft 1.14 Pre-Release 4, Minecraft 1.14 Pre-Release 5, Minecraft 1.14, Minecraft 1.14.1, Minecraft 1.14.2 Pre-Release 1, Minecraft 1.14.2 Pre-Release 2, Minecraft 1.14.2 Pre-Release 3, Minecraft 1.14.2 Pre-Release 4, Minecraft 1.14.2, Minecraft 1.14.3 Pre-Release 1, Minecraft 1.14.3 Pre-Release 2, Minecraft 1.14.3, Minecraft 1.14.4 Pre-Release 1, Minecraft 1.14.4 Pre-Release 3, Minecraft 1.14.4 Pre-Release 4, Minecraft 1.14.4 Pre-Release 5, Minecraft 1.14.4 Pre-Release 6, 1.14.4, 19w34a, 19w35a, 19w36a, 19w37a, 19w38b, 19w39a, 19w40a, 19w41a, 19w42a, 19w45b, 19w46b, 1.15 Pre-release 1, 1.15 Pre-Release 2, 1.15 Pre-release 3, 1.15 Pre-release 4, 1.15 Pre-release 5, 1.15 Pre-release 6, 1.15 Pre-release 7, 1.15, 1.15.1, 1.15.1 Pre-release 1, 1.15.2 Pre-Release 1, 1.15.2 Pre-release 2, 1.15.2, 20w06a, 20w07a, 20w08a, 20w09a, 20w10a, 20w11a, 20w13a, 20w13b, 20w15a, 20w17a, 20w18a, 20w19a, 20w20a, 20w20b, 20w21a, 20w22a, 1.16 Pre-release 2, 1.16 Pre-release 3, 1.16 Pre-release 5, 1.16 Pre-release 6, 1.16 Pre-release 7, 1.16 Pre-release 8, 1.16 Release Candidate 1, 1.16, 1.16.1, 20w28a, 20w30a, 1.16.2 Pre-release 1, 1.16.2 Release Candidate 1, 1.16.2 Release Candidate 2, 1.16.2, 1.16.3 Release Candidate 1, 1.16.3, 1.16.4 Pre-release 1, 1.16.4 Pre-release 2, 1.16.4 Release Candidate 1, 1.16.4, 20w46a, 20w48a, 20w51a, 21w03a, 1.16.5, 21w05a, 21w05b, 21w06a, 21w07a, 21w11a, 1.17 Pre-release 2, 1.17, 1.17.1, 1.18.2, 22w16b, 1.19.2, 22w42a, 1.19.3, 1.19.4, 23w12a, 23w14a, 23w16a, 23w17a, 23w18a, 1.20 Pre-release 1, 1.20.2, 1.20.4, 24w13a, 1.20.5 Release Candidate 2, 1.20.6, 1.21
-
Confirmed
-
Accessibility
-
Normal
-
Platform
The bug
If you're using a keyboard layout where the letter A is not on the same position as on a QUERTY keyboard (for example, the French AZERTY layout), Minecraft still maps keybindings as if you were using a US/QUERTY keyboard.
How to reproduce
- Select the French AZERTY keyboard layout (other keyboard layouts are affected as well, see above).
- Type something into the chat.
- Press Ctrl+A (where A is the key directly to the right of the tab key).
- Note that nothing happens.
- Press Ctrl+Q (where Q is the key directly to the right of the CAPS LOCK key).
- Note that the text you typed into the chat is being selected.
Other keybindings are affected as well, for example F3+Q and F3+A. This also applies to Mac where for example Command+A is expected to select all text, but quits the app instead.
Code analysis
This is caused by the method glfwSetKeyCallback who returns a key code assuming a US keyboard layout.
To fix it, instead of directly testing the key code returned by glfwSetKeyCallback with the GLFW_KEY constants, it has to be converted to his printable character with the glfwGetKeyName method.
– mrpingouin1 in this comment
- is duplicated by
-
MC-93926 bug whit AZERTY mac keyboard in command blocks
- Resolved
-
MC-121643 Impossible to use Ctrl+A in input boxes
- Resolved
-
MC-121646 AZERTY is QWERTY in the chat box and for debug shotcuts.
- Resolved
-
MC-121835 We can't select all text using Ctrl+A in chat, anvils & world creation screen
- Resolved
-
MC-121958 F3+'KEY' and AZERTY keyboard
- Resolved
-
MC-122031 Problem with AZERTY keyboard
- Resolved
-
MC-122436 Pressing F3+Q to display help reloads all chunks instead on AZERTY keyboard
- Resolved
-
MC-123250 Debug options F3+A and F3+Q inverted
- Resolved
-
MC-123387 CTRL + A doesn't work
- Resolved
-
MC-124149 Wrong assimilation of key bindings
- Resolved
-
MC-126556 ctrl + a doesn't work with azerty keyboards
- Resolved
-
MC-127423 Bark bug + Keyboard bug + Get NBT bug + Research bug
- Resolved
-
MC-127713 Control + A not working
- Resolved
-
MC-128098 Keyboard shortcuts do not support AZERTY keyboards
- Resolved
-
MC-128630 The game changes from AZERTY to QWERTY
- Resolved
-
MC-130116 French shortened bugged
- Resolved
-
MC-130128 Crlt + a in chat don't work
- Resolved
-
MC-130131 Crlt + a in chat don't work
- Resolved
-
MC-131517 We do not have the "CTRL+A" ?? ( see the edit )
- Resolved
-
MC-133240 CTRL + A does not work
- Resolved
-
MC-133955 Copy / Paste don't work on 1.13
- Resolved
-
MC-133958 F3+Q doesn't show help text but reloads chuncks
- Resolved
-
MC-133977 F3+key not working with non english keyboard
- Resolved
-
MC-134001 Shortcuts don't take into account alternate keyboard layouts
- Resolved
-
MC-135120 The shortcut Ctrl+A doesn't work in text fields
- Resolved
-
MC-135526 Ctrl bug
- Resolved
-
MC-136133 Ctrl + A and Ctrl + C
- Resolved
-
MC-136655 CTRL+A is not working on AZERTY keyboards and variants
- Resolved
-
MC-137882 "F3 + A" and "F3 + Q" are reversed
- Resolved
-
MC-138511 AZERTY inputs work as QWERTY
- Resolved
-
MC-144393 Debug key bindings use QWERTY with non-QWERTY keyboards
- Resolved
-
MC-146501 Select all text (ctrl+a) don't work as it should be
- Resolved
-
MC-146504 [Mac OS]Cmd + a to select all text doesn't work
- Resolved
-
MC-148569 F3 + A and F3 + G are invert in azerty keyboard
- Resolved
-
MC-152508 All key combinations uses raw KeyCode instead of the actual key pressed
- Resolved
-
MC-163007 The "select all" keyboard shortcut (ctrl + a) doesn't work on AZERTY layout
- Resolved
-
MC-186883 "F3 + Q" et "F3 + A" sont inversé
- Resolved
-
MC-200113 Debug Menu doesn't change when using different keyboard to QWERTY
- Resolved
-
MC-210667 F3+Q shows keys for qwerty
- Resolved
-
MC-210668 copy and paste commands are wrong (on purpose but should fix)
- Resolved
-
MC-230640 key error
- Resolved
-
MC-233086 'Select all' keybinding forced to QWERTY keyboards only
- Resolved
-
MC-238741 F3 commands in chat
- Resolved
-
MC-256547 Keyboard layouts improperly supported by game and typing commands
- Resolved
- relates to
-
MC-158613 Control + A Clears the text field instead of selecting all text
- Reopened
-
MC-250644 Linux/GNU: Custom keyboard layout options are ignored since 22w16a
- Open
-
MC-127862 "Alt Gr" key makes "Ctrl" locked
- Reopened
-
MC-133407 Keybinds switch when upgrading to 1.13 if not using a QWERTY keyboard
- Reopened
-
MC-148898 Hebrew letters aren't assigned to their correct textures
- Resolved
- links to