Shift + Tab inserts invalid character

Issue #142 closed
Yusuf Ismail repo owner created an issue

The "Show Previous Suggestion" key is not working as expected. Using the default config, Shift+Tab results in an illegible square character in the input field. Screencap here:

https://giphy.com/gifs/tV2LKwlVvyoYhZjZxB

Details:

  • macOS Catalina 10.15.7
  • Unity 2020.2.3f1, WebGL is the currently selected build mode

Comments (9)

  1. Jimmie Tyrrell

    Pasted the invalid character 3 times below:

    ???
    

    My text editor says it’s hex code 0x19, aka “End of medium (EM)” 🤷‍♂️

  2. Jimmie Tyrrell

    Confirmed this does not happen when Show Suggested and Show Previous are bound to Up/Down. Shift+Tab still displays an unprintable even when it’s not bound to anything. Worth noting also that the Escape character displays an unprintable character. My text editor says Escape is character 0x1B (which is actually the ascii code for Escape)

  3. Jimmie Tyrrell

    Confirmed this does happen to another TextMeshPro Input field that I added to the scene. It is the same issue for both Escape and Shift+Tab.

    So a quick fix was to set a Content Type to Custom on the Input Field component, then a Character Validation of Regex, with Regex Value equal to the following:

    [^\p{Cc}\p{Cn}\p{Cs}]
    

    This validates only printable characters.

    So seems like not a bug in QC, but perhaps the demo Console prefab should have this configuration in future releases

  4. Log in to comment