-
-
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
Activate navigation by default #2048
Comments
Hello, Navigation visuals are activated when using the keyboard/gamepad keys and deactivated when using the mouse. I think we need to design new function calls to alter those state.
In most cases those fields are in opposite state (NavDisableHighlight is false when NavDisableMouseHover is true etc.) but there are a few situations where they aren't, so it's not a simple binary state. We need to clarify this further to be able to design a suitable api. |
I would love to have a public API to do that :) |
Me too. I have such API in my own imgui extension. |
I have added a few things related to those requests:
Technically I think the config options are sufficient for most people. Other tangentially related options:
Also note, if you have mods using internals, that those two fields have been renamed internally:
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. |
Version/Branch of Dear ImGui:
master (73fa5c2)
Back-end file/Renderer/OS:
Back-ends: imgui_impl_opengl3.cpp and custom engine
OS: Linux
Compiler: Clang 6.0
My Issue/Question:
I may have diagnosed this wrong, but it seems to me that if the application just started and navigation has never been used (you never pressed up/down etc), SetItemDefaultFocus does nothing. I couldn't find a way to force navigation to initiate, as if the user had pressed a navigation key once.
Standalone, minimal, complete and verifiable example:
In
example_sdl_opengl3/main.cpp
Start the application, and the button will not be focused. However, if I use the keyboard to open another window with similar code, it works, the button is focused.
The text was updated successfully, but these errors were encountered: