-
-
Notifications
You must be signed in to change notification settings - Fork 10.5k
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
Tabbing/Navigation over all kind of items using the Tab key #3092
Comments
Hello Hans-Peter, Essentially none of the things you are (justly) suggesting are presently implemented. I had a large wip stash working on redesigning this but the feature set kinda grew (as I was working on an API to activate/focus item which requires solving more issues). I could perhaps try to get a simpler version of that in. |
Thanks Omar! Whatever you can do will be welcome. I quite understand that focus management is far from trivial. |
Thanks for mentioning my issue. This is very serious blocker for me as my tool needs quick navigation using keyboard, that is quite a main requirement of my application. I was not even aware that is not currently possible when I started porting my code to ImGui... Anyway, good luck on getting this done! |
I was trying to design a simple modal with a textbox and an ok/cancel button and realized I couldn't tab from the textbox to the buttons. I pressed tab by second nature and didn't even consider it might not work. Though it's obvious in retrospect how annoying this could be to implement, it does seem fairly important for making polished UIs. Any workaround in the meantime? |
No workaround but I've put some very serious time last month in moving forward with tabbing and some aspect of navigation system. Quick recap.
|
EDIT Actually 66f0fb9 broke that, will fix soon. |
I have pushed the remaining glue to allow Tabbing to cycle through every items. Note that "full" tabbing requires I have also switched examples application to enable both ImGuiConfigFlags_NavEnableKeyboard and ImGuiConfigFlags_NavEnableGamepad by default now. |
I cannot seem to navigate between my text field and my tree view (tree of TreeNode widgets) using the Tab key.
I can get to the text field (which is first child of my window) using Tab.
When I click on my text field, I can tab out of it, but the focus does not go to my tree.
When I click on any node of my tree, I can use the cursor keys to navigate and open/close nodes, but I cannot tab back to my text field.
The tree is wrapped into a
BeginChild
/EndChild
group; theInputText
widget is not.Note: using cursor up/down, I can get a frame to display around either my text field or my tree; however, that seems to have no influence on the keyboard focus.
The text was updated successfully, but these errors were encountered: