-
-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
SetKeyboardFocusHere(-1) not working with InputTextMultiline #4761
Comments
I have pushed a fix for this 66f0fb9 and added regression tests. |
Reopening as this commit broke tabbing through |
Pushed a fix c5db276. |
Hello! I'm not sure if I should open a new issue, because it seems that
However, this works, but it makes it impossible to press other buttons:
I guess it works in the second example, because it sets the focus every frame, not only in the frame that I pressed Enter. But I expect the former to work, because it already works with |
Same issue on
Is there a workaround to keep the multiline text input focused after pressing enter? |
Please open a new issue for increased visibility. |
Fixed again 521f84a + extra test ocornut/imgui_test_engine@633988e |
Version: v1.85
Branch: master
When doing something like
Nothing happens.
However, when using
InputText
instead ofInputTextMultiline
, it works as expected!Another note: putting the
SetKeyboardFocusHere(0)
before theInputTextMultiline
does have effect (not useful but nonetheless).Some context: I noticed that only with left mouse-click does an inputText gets focus & wanted to have it also happening with the right click. But as I saw in the implementation, the
MouseClicked[0]
etc checks are hardcoded, taking into account only the left click.The text was updated successfully, but these errors were encountered: