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
Editbox losing focus triggers Editbox's OnEditboxChanged #8983
Comments
Should it not be triggered? The editbox has been changed - it is no longer focused! At the very least it needs to redraw the window without the cursor. |
Also, when using an IME for text input, the edit box string can also change as we discard any non-commited IME input. |
So running the Tnx :) |
Nope, that was a mistake observation I made, it actually only triggers once. I will change the description to make it clear. |
Thanks for the responses. I guess this makes sense. I wonder if a OnEditboxContentsChanged callback would make sense, though probably not as I don't think there are even that many usages of OnEditboxChanged. Anyhow, I am closing this as it seems to be working fine and doesn't cause any trouble. It was nice to get some discussion on this. |
Version of OpenTTD
Building at HEAD, 1.11+ I guess.
Expected result
Is this working as expected?!
Actual result
Losing focus triggers OnEditboxChanged
Steps to reproduce
The text was updated successfully, but these errors were encountered: