-
-
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
InputTextFilterCharacter doesn't filter Tabs (in german system) #2467
Comments
I am not sure the SFML back-end is correct emitting both a Key and Char input. |
How can I check that? |
Add print out into the SFML code calling But I was wrong: most back-ends are emitting a
Could you compile this code and confirm the output:
Then provide the exact compiler you are using (which you have omitted from the issue template questions). Thank you. |
Alright, welcome to compiler/std-library hell :) https://stackoverflow.com/questions/51435249/isprint-t-evaluates-to-true-64-with-md-compiler-option I will explicitely work-around around this in the code, thanks! |
Fixed this now, thank you for the report! Also probably explains #1336 now! |
FYI, I am still seeing this issue on Win32/DX12. I have worked around the issue for now by commenting out this code. |
I can confirm there's an issue with the new IO queue trickling events over two frames (#4921) those tests are now invalid. |
@codename-irvin can you clarify precisely the issue you are getting? |
Fixed by dfbe938 |
@ocornut, indeed. The issue was that I was getting two tabs inserted instead of one. Looks like I am on a 1.88 backend. I am on docking branch latest. Thanks for the fix! |
Version/Branch of Dear ImGui:
Version: 1.69
Branch: master
Back-end/Renderer/Compiler/OS
Back-ends: imgui_sfml
Operating System: Windows 10 (German as Systemlanguage)
My Issue:
You can enter a Tab in any InputText, which will cause a focus jump to the next item, but the tab is also written into the buffer. My tests of the InputTextFilterCharacter (which is my best friend...) proved, that isprint returns 64 if a tab is entered. Why is it necessary to use isprint in that case?
Standalone, minimal, complete and verifiable example:
The text was updated successfully, but these errors were encountered: