goatcorp/Dalamud

DirectChat + Special Keys trigger double taps in ImGui.Input

Infiziert90 opened this issue · 0 comments

The issue got first brought up by Athene79 Infiziert90/ChatTwo#62, but after some testing i have confirmed that this a general issue and not only chat2 is affected.

Whats happens is that special keys, like the < on a german keyboard (To the right of the "left shift" key), double tap in any imgui input field. But this only happens when "Direct Chat Input" from the game is active.

Reproduce:

  • Enable the direct chat input option (Keybinds -> Chat -> Checkbox at the top)
  • Open /xlplugins
  • Click the search field
  • Press said special key with a german keyboard layout, or any other special key with other keyboard layouts

Result:

  • "<<" will appear in the search field
  • Direct chat triggers focus for vanilla chat input

ffxiv_dx11_CCSX0hCrG8

I invested some time to try and debug it in chat2 before noticing that this was general issue, and what i saw there suggest to me that ImGui isn't successfully cleaning the key state and just lets it pass through to the game.

image

Was = Before ImGui.Input
Is = After ImGui.Input