Skip to content
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

[BUG]: EmulateInputField.cs produces a fallback character if you press CapsLock, Shift, or Backspace #1007

Open
SamJTeleqo opened this issue Aug 30, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@SamJTeleqo
Copy link

SamJTeleqo commented Aug 30, 2024

Package version

3.1.0-exp.7

Environment

* OS: Windows 11
* Unity version: 2022.3.19f1
* Graphics API: URP
* Browser: Microsoft Edge

Steps To Reproduce

  1. Add the #if URS_USE_TEXTMESHPRO to your project to make TMPro input fields function while render streaming (as mentioned in bug [BUG]: #if URS_USE_TEXTMESHPRO define directive stops EmulateInputField.cs from working with TMPro Input Fields #1006)
  2. Render Stream into unity and select a TMPro Input Field
  3. Press Caps Lock, Backspace, or Shift and an empty square will appear in the input field

Current Behavior

Pressing these three keys will make the fallback char (empty square character) appear in the Text Mesh Pro input field. The keys function as they should, but they also add the fallback char to the field.

I notice a PR was actually pushed to fix this in #945, but that code did not make it into 3.1.0exp.7. If I add that PR's added if statement to the script myself, the problem goes away.

Expected Behavior

CapsLock, Shift, and Backspace shouldn't add characters to input fields.

Anything else?

No response

@SamJTeleqo SamJTeleqo added the bug Something isn't working label Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants