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 Does Not Stay on the Left for RTL Input in SuperTextField #2472

Open
ismail-go opened this issue Dec 21, 2024 · 0 comments
Open

Cursor Does Not Stay on the Left for RTL Input in SuperTextField #2472

ismail-go opened this issue Dec 21, 2024 · 0 comments

Comments

@ismail-go
Copy link

I am using the SuperTextField widget from the Super Editor package, and I encountered an issue when handling right-to-left (RTL) input. While the text direction dynamically adjusts to RTL based on the input using Directionality widget, the cursor does not stay on the left side of the text field when in RTL mode. Instead, it behaves as if it’s in left-to-right (LTR) mode, which is inconsistent with standard RTL text editing behavior.

This behavior causes confusion for users who expect the cursor to align properly for RTL languages such as Arabic or Hebrew.

Steps to Reproduce:
1- Use the SuperTextField widget with a text controller that updates Directionality dynamically based on input.
2- Enter any RTL text (e.g., Arabic or Hebrew).
3- Observe the text aligns correctly to the right, but the cursor stays on the right instead of shifting to the left, as expected for RTL input.
Expected Behavior:
When in RTL mode:
-The text should align to the right.
-The cursor should remain at the leftmost position of the text field, consistent with RTL text editing behavior.
Actual Behavior:
When in RTL mode:
-The text aligns to the right (as expected).
-However, the cursor stays on the right, behaving as if the input is in LTR mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant