mirror of
https://github.com/ocornut/imgui.git
synced 2026-11-10 19:03:30 +00:00
Navigation using Tab Key with InputTextMultiline and ImGuiConfigFlags_NavEnableKeyboard, not detecting new line #6802
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#6802
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?
Hi there,
I've found an issue which happens only with ImGuiConfigFlags_NavEnableKeyboard set.
The navigation happens with Tab Key and focus changes, but somehow the Enter button (New Line) on the InputTextMultiline is not detected, unless Enter is held down.
Is there any way to fix it ?
Example:
Thanks, Antonio.
UPDATE:
This issue actually happens when the control InputTextMultiline is focused. Otherwise works all fine.
Focused (not working properly)


Not-Focused (WORKING!)
Thank you for reporting.
I have pushed a fix for this
0e1ce76.Amusingly we had a comment directly the double activation as "Harmless but bizarre." but it turned out not to be harmless.
Pushed an automated regression test to TestEngine:
ocornut/imgui_test_engine@478329f02fThe fact the the navigation system only emits the
g.NavActivateIdsignal (on space or enter) wheng.NavDisableHighlight == falseis probably to be reworked and currently creates some inconsistency. I guess whenImGuiConfigFlags_NavEnableKeyboardis set we should always restore the highlight on tabbing.Also pushed a change for that:
b9ab6e2That's great! Thank you so much! It was driving me crazy :) Cheers!