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

[Bug] Home/End key moving the cursor to the next line after reaching start/end of the line #998

Open
Adel0n opened this issue Dec 22, 2024 · 0 comments

Comments

@Adel0n
Copy link

Adel0n commented Dec 22, 2024

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

  1. Open example editor.
  2. Press Home or End key twice
  3. 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

example.2024-12-22.16-21-33.mp4

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.

@Adel0n Adel0n changed the title [Bug] Home/End key moving to the next line after reaching start/end of the line [Bug] Home/End key moving the cursor to the next line after reaching start/end of the line Dec 22, 2024
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