You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SetKeyboardFocusHere() does not work with InputTextMultiline + ImGuiInputTextFlags_AllowTabInput #8928
Using SetKeyboardFocusHere() with InputTextMultiline() and the ImGuiInputTextFlags_AllowTabInput flag, does not make the item keyboard focused, as it should.
In contrast, using it with InputTextMultiline() alone works as expected and InputText() behaves correctly with or without the ImGuiInputTextFlags_AllowTabInput flag.
Hello,
Thank you for your report and careful repro.
This is now fixed by 2f1d1c8.
This was caused by the fact that we have special handling for InputText() with ImGuiInputTextFlags_AllowTabInput, they inhibit activation during tabbing in order to allow cycling through multiple items. As SetKeyboardFocusHere(0) internally uses some of the tabbing logic this behavior leaked in that situation. Now fixed.
Activity
Focus, InputText: fixed an issue where SetKeyboardFocusHere() did not…
ocornut commentedon Sep 10, 2025
Hello,
Thank you for your report and careful repro.
This is now fixed by 2f1d1c8.
This was caused by the fact that we have special handling for
InputText()with ImGuiInputTextFlags_AllowTabInput, they inhibit activation during tabbing in order to allow cycling through multiple items. AsSetKeyboardFocusHere(0)internally uses some of the tabbing logic this behavior leaked in that situation. Now fixed.Focus, InputText: fixed an issue where SetKeyboardFocusHere() did not…