Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

rodrigorc
Copy link
Contributor

The recent update to DearImGui 1.89.2 was great, but I think it broke the handling of modifier keys.

The thing is that the values of io.key_shift and friends are updated in ImGui::UpdateKeyboardInputs() based on the values of the pseudo keys such as ImGuiMod_Ctrl.

It looks like the recommended way to notify changes in the modifier keys is to just call AddKeyEvent(), as if it were a real key.

@dbr
Copy link
Contributor

dbr commented Jan 15, 2023

Huh, quite right - no idea how I didn't spot this, I was sure I tested modifier keys were working! 🤷

Thanks for this! Pushed a minor fix, shall merge when CI is happy!

@dbr dbr merged commit 93cde6a into imgui-rs:main Jan 15, 2023
@rodrigorc rodrigorc deleted the FixWinitKeyboard branch January 15, 2023 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants