Repository navigation
Mobile text field problem with auto-closing keyboard and truncated text #302
Unanswered
lorenzoMezza
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi everyone, I can't figure out how to make it so that when the user's input text exceeds the boundaries of its box, it gets truncated from the left instead of the right. In other words, when continuing to type, the new text should remain visible while the previous text is truncated.
Additionally, I'm not sure if it's a bug or a misconfiguration on my part, but in the NovaSamples.UIControls.TextFieldMobileInput class, there's a section of code that doesn't seem to work. Specifically, the part that handles closing the keyboard when the screen is touched outside of it.
It seems that this doesn't happen, and the keyboard remains open regardless. Here's the code in question that is not working:
The problematic part is: if (touchScreenKeyboardController.Status != TouchScreenKeyboard.Status.Visible)
All reactions