Skip to content
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

Feature/keyboard navigation #2144

Merged
merged 3 commits into from
Jan 6, 2024

Conversation

v-ein
Copy link
Contributor

@v-ein v-ein commented Jul 31, 2023


name: Pull Request
about: Create a pull request to help us improve
title: Access to Dear ImGui's keyboard navigation feature
assignees: @hoffstadt


Description:
This PR exposes the ImGuiConfigFlags_NavEnableKeyboard flag via configure_app, and also enables "flattened navigation" for child windows (which can be opted out).

To be able to test it, one needs to adjust the NavHightlight color because the default value is the same as window background. Alternatively, use create_theme_imgui_dark from DearPyGui_Ext.

With keyboard navigation, the focus is rendered as a bright blue frame around the focused widget, and can be moved with arrow keys.

image

Concerning Areas:
None.

* keyboard navigation flag in configure_app

* flattened_navigation support in child_window
Declared flattened_navigation in API.
@jd-solanki
Copy link

I'm really missing this feature as we can't use keyboard for working with app 🤔

hoffstadt
hoffstadt previously approved these changes Jan 6, 2024
@hoffstadt hoffstadt merged commit 30aa1aa into hoffstadt:master Jan 6, 2024
1 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants