-
-
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
InputText input stealing #1600
Comments
Hello, You are missing a proper repro (or MCVE, see: https://stackoverflow.com/help/mcve) and there isn't enough information in your post to infer anything. Please provide one.
It seems normal that if you press T on the keyboard the InputText() would receive it, isn't that the desirable behavior of InputText() ? If anything, it could be a bug that the first time the character isn't received by the InputText(), presumably because the widget is clipped during the initial window sizing. InputText() gets its data from the |
Sorry, I thought the code I posted was more than enough? I've tried using |
It's not if I cannot reproduce your issue on my end. Experienced users have more leeway and possibilities to explain their bug without a repro, but if you are not able to, then the repro is the best thing you can do.
It seems like the correct solution to me, so if it doesn't work you are maybe doing something wrong.? |
I guess we'll have to discontinue using ImGui, then. Because I've tried almost everything and it simply does not work, or must just be counter-intuitive. |
As you wish. I literally gave you the fastest path to finding a solution and your answer is "we'll have to discontinue using ImGui". You can't say you have tried almost everything when you haven't tried the thing that I suggested you do. |
I've tried using How exactly am I supposed to provide a further MCVE when the code I posted can easily be modified to fit within the ImGui demo examples? |
It's your job to make that modification and prove that you get the bug inside the demo example, then I'll be able to see the bug. If it's easy what you don't do that? Most likely the bug lies in the code that you HAVEN'T provided above. This is why I'm asking you verify the bug inside the demo application, that's the best way to ensure you are providing everything. You may fork imgui/ make the minimum modification to exhibit the bug and share that commit/branch. If you trace the code you can see that InputText() is reading from that buffer you cleared with |
Isn't it your job to make sure this works? |
No, it's your job to prove your claim first, and then if there is a bug (and in this case I think there isn't) I get to decide whether I want to fix it because this is a free software and I owe you nothing. It's insane that you would be so entitled even when I take the time to help you fix your own bugs. You are blocked now, good luck. |
Works fine for me, looks like he did his job well. |
Currently having issues when toggling a chat box we've made using ImGui. It works fine on it's first run, but after this, every time the chatbox is toggled with 'T', a lowercase 'T' can be seen at the beginning of the chatbox.
The text was updated successfully, but these errors were encountered: