Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # 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.

v-ein added 2 commits July 31, 2023 15:00
* keyboard navigation flag in configure_app

* flattened_navigation support in child_window
Declared flattened_navigation in API.
@v-ein v-ein requested review from hoffstadt and Pcothren as code owners July 31, 2023 12:26
@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
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants