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

Fix left/right arrow key moving direction #2

Closed
ahangarha opened this issue Aug 24, 2023 · 8 comments · Fixed by #9
Closed

Fix left/right arrow key moving direction #2

ahangarha opened this issue Aug 24, 2023 · 8 comments · Fixed by #9

Comments

@ahangarha
Copy link
Member

In RTL text, pressing the left/right arrow keys moves the cursor in the opposite direction.

@hedimdev
Copy link

Thank you for this really essential plugin. Anything you can do to fix the cursor movement or is it an OS problem? I'm using it on Ubuntu and the cursor movement is very confusing, especially since CTRL+Arrow moves in the correct direction.

@ahangarha
Copy link
Member Author

I'm happy to get some response here.
I try to fix this issue this week.

@ahangarha
Copy link
Member Author

@hedimdev I just released v0.2.0. Please use and confirm the fix.

@hedimdev
Copy link

hedimdev commented Jan 4, 2024

@hedimdev I just released v0.2.0. Please use and confirm the fix.

Looks good. Thanks for the quick response.

@hedimdev
Copy link

hedimdev commented Jan 6, 2024

@hedimdev I just released v0.2.0. Please use and confirm the fix.

There's an edge case:

  1. Create two blocks, the first one can be any text but the second block should be RTL.
  2. Place the caret at the beginning of the RTL block.
  3. Clicking the right arrow moves the caret back to the end of the previous block (that's correct) but clicking the left arrow does the same (incorrect movement) instead of advancing left into the RTL block.

@ahangarha
Copy link
Member Author

I tried different scenarios, but not this one.
Thanks for the feedback. Will be fixed ASAP.

@hedimdev
Copy link

hedimdev commented Jan 7, 2024

I just realized the same (or actually the opposite) issue exists at the end of a RTL block. If the caret is at the end of the block, clicking the right arrow moves the caret down to the next block instead of going backwards into the RTL text.

@ahangarha
Copy link
Member Author

@hedimdev I just released v0.3.0 and fixed the issue.

Please check and confirm the fix.

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

Successfully merging a pull request may close this issue.

2 participants