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

Arrow keys moving caret in wrong direction in RTL mode #9730

Closed
Bip901 opened this issue Apr 4, 2021 · 1 comment
Closed

Arrow keys moving caret in wrong direction in RTL mode #9730

Bip901 opened this issue Apr 4, 2021 · 1 comment

Comments

@Bip901
Copy link

Bip901 commented Apr 4, 2021

Description of the Issue

When in RTL (Right to Left) mode, pressing the left and right keyboard arrow keys in Notepad++ causes the caret to move in the opposite direction. Left moves right, right moves left.

Steps to Reproduce the Issue

  1. Open a new file in Notepad++.
  2. Write any text in any language, RTL or otherwise (try "Hello World", "שלום עולם")
  3. Switch to RTL mode (View->Text Direction RTL)
  4. Press the arrow keys to move the caret.
  5. The caret will move in the opposite direction

Expected Behavior

Pressing the left arrow key should move the caret left (as the right arrow key currently does).
Pressing the right arrow key should move the caret right (as the left arrow key currently does).
Other text editors flip the keys correctly, including the default Windows notepad.
The arrows should definitely be flipped in RTL languages, and maybe in LTR languages as well (subject to debate).

Actual Behavior

Pressing the right arrow key moves the caret left.
Pressing the left arrow key moves the caret right.

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