Skip to content

Keyboard layout ignored for keybinds #2959

@zeroeightysix

Description

@zeroeightysix

Version/Branch of Dear ImGui:

Version: 1.75 WIP (latest commit)
Branch: master

Back-end/Renderer/Compiler/OS

Back-ends: imgui_impl_glfw.cpp + imgui_impl_opengl3.cpp
Operating System: Linux (Arch)
Keyboard layout: AZERTY

Note: Testing was done using the example_glfw_opengl3 example

My Issue:

Text entry widgets ignore keyboard layout: all keybinds, e.g. Select all (CTRL+A) assume the user is using QWERTY.
Someone typing using AZERTY (France, Belgium) or any non-qwerty layout will have to press the keys where A is on QWERTY, instead of pressing the actual A key.
For AZERTY, Q is in the same place as the A key on QWERTY, making it so that CTRL+Q will result in a "Select all" operation happening.

This will happen with other keybinds, such as CTRL+Z etc.

Screenshots/Video

Video

First I type all as to show the key code of a, and then attempt to press CTRL+A.
After that, I do the same for Q. Only then a selection happens.

Standalone, minimal, complete and verifiable example:

examples/example_glfw_opengl3
All can be tested in the demo window(s).

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions