Automattic / simplenote-electron

Simplenote for Web, Windows, and Linux
https://app.simplenote.com
GNU General Public License v2.0
4.78k stars 557 forks source link

"End" key doesn't move cursor to the end of the current line for multi-line text #3144

Open reginabally opened 1 year ago

reginabally commented 1 year ago

Two reports from the forums about the unexpected behavior of pressing the "End" key on a muti-line text.

Expected

Pressing the "End" will move the cursor to the end of the current line.

Observed

The cursor moved to the beginning of the next line when pressing the "End" key. This is only happening when the text wraps in a few lines.

Reproduced

  1. Add a multi-line paragraph in the app
  2. Move the cursor to the beginning of the paragraph
  3. Press the "End" key on your keyboard
  4. Notice the cursor moves to the beginning of the next line instead of the end of the current line

Screen recording

https://user-images.githubusercontent.com/40906847/231963727-854b4c79-4c4e-4f30-b425-799fc9eed35f.mp4

Where did you see the bug

OS Version App version
Linux Mint 20.3 Cinnamon 2.21.0
Windows 10 2.21.0
Ubuntu 20.04 2.21.0