appflowy-editor
appflowy-editor copied to clipboard
[Bug] Home/End key moving the cursor to the next line after reaching start/end of the line
Bug Description
Pressing the Home key, it moves the cursor to the beginning of the block. Pressing it again moves the cursor to the end of the previous block. End works in the same way. Also, if the block is multiline, it jumps to the end of the block, not the line.
How to Reproduce
- Open example editor.
- Press
HomeorEndkey twice - Notice it move moves the cursor to the next line.
Expected Behavior
Home/End shout return the cursor to the beginning/ending of the line where the cursor is located. When the text is not editable, the Home/End key should return to the beginning/ending of the document. (example - Notion)
https://en.wikipedia.org/wiki/Home_key https://en.wikipedia.org/wiki/End_key
Operating System
Windows 11 24H2
AppFlowy Editor Version(s)
4.0.0
Screenshots
https://github.com/user-attachments/assets/2b4e16b5-77b9-4393-8104-bcc99226e8ea
In the first part of the video, I'm just pressing End. Notice it jumps to the next line after reaching of the end of current, and to the end of block into multi-line block. The same behavior is for Home in the second part of the video.
Additional Context
The bug also reproducable in AppFlowy standalone app.