https://bugs.mojang.com/browse/MC-121278
Keybindings (e.g. Ctrl+A for AZERTY, the Ctrl+Q equivalent for QWERTY) are mapped to the US (QWERTY) keyboard layout even when using another layout, which means that Ctrl+A won't work but Ctrl+Q will on an AZERTY keyboard since the game will consider you on a QWERTY keyboard anyways
This is caused by the method glfwSetKeyCallback returning a key code assuming it's 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 its printable character with the glfwGetKeyName method
There's currently no mod fixing that
https://discord.com/channels/822066990423605249/1276696084508442645/1276696084508442645
Originally reported by Wyvest, imported from: [Modern versions] Fix non-QWERTY keyboard mapping (AZERTY, QWERTZ, etc.)
- status: Backlog
- priority: Medium
- resolution: Unresolved
- imported: 2025-06-25
https://bugs.mojang.com/browse/MC-121278
Keybindings (e.g. Ctrl+A for AZERTY, the Ctrl+Q equivalent for QWERTY) are mapped to the US (QWERTY) keyboard layout even when using another layout, which means that Ctrl+A won't work but Ctrl+Q will on an AZERTY keyboard since the game will consider you on a QWERTY keyboard anyways
This is caused by the method glfwSetKeyCallback returning a key code assuming it's 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 its printable character with the glfwGetKeyName method
There's currently no mod fixing that
https://discord.com/channels/822066990423605249/1276696084508442645/1276696084508442645
Originally reported by Wyvest, imported from: [Modern versions] Fix non-QWERTY keyboard mapping (AZERTY, QWERTZ, etc.)