Skip to content

IsKeyPressed cannot detect non enum ImGuiKey keys in a keyboard layout agnostic way #6631

Description

@bear24rw

I currently have code that looks like this to detect that : was pressed but this does not honor keyboard layouts, for example it does not work as expected with a German keyboard. I know there was a lot of discussion around this topic in glfw/glfw#1502 and #4921 but is there a solution / workaround for this issue yet? I was unable to figure out a workaround.

if (ImGui::IsKeyPressed(ImGuiKey_Semicolon) && ImGui::GetIO().KeyShift)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions