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

Cursor always places itself in the left side of input textfields #3802

Open
delta04 opened this issue Mar 26, 2021 · 3 comments
Open

Cursor always places itself in the left side of input textfields #3802

delta04 opened this issue Mar 26, 2021 · 3 comments
Labels
text Issues relating to text rendering/input

Comments

@delta04
Copy link

delta04 commented Mar 26, 2021

When an input text field is selected the cursor places itself on the left side, even if the text field is centered or right aligned.
And when the text is deleted from the text field the cursor always jumps to the start position - left.
Only when a key is pressed will the cursor find its right position, - left, centered or right, - which means, that the ruffle code has got it right somewhere along the line.
Would it be possible to change the ruffle code a little, so that the left, center or right alignment works one step earlier, - i.e. at the very moment, when the text field is selected ?
textalign.zip

@ousia
Copy link
Contributor

ousia commented Mar 27, 2021

Many thanks for your report, @delta04.

I think it might be a duplicate of #3001.

@Lord-McSweeney Lord-McSweeney added the text Issues relating to text rendering/input label Jan 16, 2023
@ousia
Copy link
Contributor

ousia commented Sep 6, 2023

@delta04, I don’t know whether this has been fixed (checked against nightly from 2023-09-06) by simply not placing the cursor when the input text is selected (before typing) and after deleting all chars from the text field.

@Lord-McSweeney, since you tagged this, could you be so kind to confirm whether this has been fixed (or the issue is now not placing the cursor)?

Many thanks for your help.

@delta04
Copy link
Author

delta04 commented Sep 8, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
text Issues relating to text rendering/input
Projects
None yet
Development

No branches or pull requests

3 participants