-
-
Notifications
You must be signed in to change notification settings - Fork 10.6k
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: Pressing Alt deactivates widget when nav inputs are disabled with ImGuiWindowFlags_NoNavInputs #8231
Comments
…windows with the ImGuiWindowFlags_NoNavInputs flag. (#8231)
Hello, Please note that there is now an input ownership/routing mechanism, so I am curious to know about the particular reason you may be using |
That was fast, thank you! :) This is a rather large codebase with ~50 places where ImGuiWindowFlags_NoNav / ImGuiWindowFlags_NoNavInputs is used. From the top of my head it's hard to say what are the reasons for disabling nav, but I suspect there are historical reasons. We are also running a few releases behind. |
Alright, for now I'll close this but don't hesitate to discuss this internally or get back to me for advices. |
Added a basic test for it too ocornut/imgui_test_engine@f881a75 |
…windows with the ImGuiWindowFlags_NoNavInputs flag. (ocornut#8231)
Version/Branch of Dear ImGui:
Version 1.91.7 (WIP), Branch: master
Back-ends:
imgui_impl_win32.cpp + imgui_impl_dx10.cpp
Compiler, OS:
Windows 10 + MSVC 2022
Full config/build information:
Details:
An ImGui window that sets the ImGuiWindowFlags_NoNavInputs flag still reacts to Alt being pressed by deactivating the current widget. I would expect all nav inputs (including Alt) to be disabled in this case.
Repro: open the demo window and check "No nav" in Window options. Click any input text box. Press Alt and observe that the widget is deactivated.
Screenshots/Video:
No response
Minimal, Complete and Verifiable Example code:
No response
The text was updated successfully, but these errors were encountered: