-
-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nav parameter for preventing focus loss by pressing ImGuiKey_Escape? #8059
Comments
I thought there was an issue dedicated to this but I cannot find it.. I do agree we need a solution. @Sk44rt To gather some context, would you mind writing some more about your usage? |
Yup, ImGui is the only user of keyboard input Some context |
I have added a few things related to those requests:
Technically I think the config options are sufficient for most people and would solve this, but Other tangentially related options:
I'm closing this and other related issues as normally solved, but feel free to comment or open new issues if you have question or problem related to those. ( Also note, if you have mods using internals, that those two fields have been renamed internally:
) |
Is there any typo? I don't see the difference. |
Details:
My Issue/Question:
I need to disable the loss of navigation focus when the ImGuiKey_Escape button is pressed
I've been looking for a solution for the last four days. but didn't find anything
then I started looking at what lines in
imgui.cpp
could be commented out so that the focus would not be lostand i found it!
imgui/imgui.cpp
Line 13347 in c4bc674
if g.NavId is not set to 0 then navigation focus remains
I think we can add bool parameter to ImGuiContext for preventing focus lost
something like
NavPermanentFocus
and code:
and also, with this solution, focus can move to other items/windows/popups
The text was updated successfully, but these errors were encountered: