[GH-ISSUE #5441] [Bug] Pressing End key in code block jumps to end of the block instead of line #2426

Open
opened 2026-03-23 21:22:16 +00:00 by mirror · 1 comment
Owner

Originally created by @Basher4 on GitHub (May 30, 2024).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/5441

Bug Description

When pressing End key in a code block, cursor jumps to the end of the block instead of the end of the line.

How to Reproduce

Create a code block, type text with multiple lines. Place cursor somewhere on any line except the last one, and hit the End key.

Expected Behavior

Pressing End key should jump to the end of the line.

Operating System

Ubuntu 22.04 LTS

AppFlowy Version(s)

0.5.7

Screenshots

No response

Additional Context

No response

Originally created by @Basher4 on GitHub (May 30, 2024). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/5441 ### Bug Description When pressing `End` key in a code block, cursor jumps to the end of the block instead of the end of the line. ### How to Reproduce Create a code block, type text with multiple lines. Place cursor somewhere on any line except the last one, and hit the `End` key. ### Expected Behavior Pressing `End` key should jump to the end of the line. ### Operating System Ubuntu 22.04 LTS ### AppFlowy Version(s) 0.5.7 ### Screenshots _No response_ ### Additional Context _No response_
Author
Owner

@emmggi commented on GitHub (May 30, 2024):

I'm not sure if this behavior was intended. I think it's conventional to have it at the end of the line and maybe Shift+End to be end of the block if it's necessary to some people.

<!-- gh-comment-id:2139974513 --> @emmggi commented on GitHub (May 30, 2024): I'm not sure if this behavior was intended. I think it's conventional to have it at the end of the line and maybe `Shift+End` to be end of the block if it's necessary to some people.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#2426
No description provided.