mirror of
https://github.com/ocornut/imgui.git
synced 2026-11-10 19:03:30 +00:00
Minor issues when navigating using the keyboard #5759
Labels
No labels
accidentally closed
android
backends
bug
building
clipper
coloredit
color spaces
cplusplus
data types
demo
disabled
doc
docking
dpi
drag drop
drawing/drawlist
dropped
dx12
enhancement
focus
font/text
gallery
help wanted
idle/power saving
ime
in progress
inputs
inputtext
internals
label/id and id stack
language bindings
layout
linux/bsd
menus
multi-contexts
multi-threading
multi-viewports
nav
news/info
opengl
optimization
osx/ios
overlap
plot/graph
popups
question
scrolling
selection
settings
sliders/drags
style
tables/columns
tabs
test wanted
tools
tooltips
tree
tricks & tips
useful widgets
vulkan
web
window pos/depth
window sizing
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ocornut/imgui#5759
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Config/Build Information:
Version/Branch of Dear ImGui:
Version: 1.89 WIP
Branch: master
Back-end/Renderer/Compiler/OS
Back-ends: imgui_impl_glfw.cpp + imgui_impl_opengl3.cpp
Compiler: Visual Studio 2022
Operating System: Windows 10
My Issue/Question:
Correct me if I'm wrong, but there appears to be a few bugs when it comes to navigating with the keyboard.
Start the example in
imgui\examples\example_glfw_opengl3.In the demo window, set
NavEnableKeyboardtotrue.Then start the style editor.
Problem 1:
The Colors dropdown is not initially selected, you must navigate at least once with the arrows:
Problem 2:
If Colors is current keyboard navigation target, use the mouse to edit the value.
Once you've selected a new choice, the keyboard navigation adorner disappears.
However, the navigation is not broken, try use the arrows and it will navigate properly to another target.
Also, you can see its background highlighted, but as soon as you move the mouse, that highlighting disappears.
Problem 3:
If you compare the way you edit Colors and FrameRounding:
From end-user perspective, shouldn't Color be also editable by the same key that FrameBounding is?
Problem 4:
Navigating with Tab key is not on par compared to arrow keys.
It only navigates to editable fields, never navigates to buttons and tabs present in the window.
On the other hand, navigating with the arrows works perfectly and allows to visit any control.
Problem 5:
Navigate to WindowPadding X with the keyboard, press Tab to navigate to the next field which is WindowPadding Y, it navigates to FrameRounding instead.
Problem 6:
If you switch windows with Ctrl-Tab back and forth, the keyboard navigation adorner is restored.
But if you use the mouse to click to another window and click back the window again, the adorner is gone, trying to set
ConfigWindowsMoreFromTitleBarOnlyto try mitigate this doesn't really help.Not answering Problem 1 & 2 & 6 just yet, they are related and there's no simple answer but we should rework things and offer more options.
This has now been fixed (see #5606).
This is #3092 and I am hoping to address it soon.
I agree it seems like a bug, it is indeed a subset of #3092. I'll just go work on it instead of trying to elaborate on what is happening here :)
Amazing, thank you :)
Problem 4 and Problem 5 (tabbing) should now be fixed.
What's left are 1,2,6 which are similar things to hopefully be addressed by 1.90.
Alright, I'll wait for v1.90 then!
Forgot to mention, since I posted that issue, I joined the dark side of the force; I wrote bindings for imgui if you haven't noticed it already on the wiki. 😀
It's been painful in the beginning but rewarding in the end, I've even been able to pull out imgui docs so they're immediately available so one does not have to juggle with headers. But these are still available one mouse click away. 😁
Looking forward for the next big release, thanks! 🎯