[GH-ISSUE #4923] [Bug] Keyboard up/down arrows are not working in code block #2189

Closed
opened 2026-03-23 21:20:27 +00:00 by mirror · 3 comments
Owner

Originally created by @unbreakabl3 on GitHub (Mar 16, 2024).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/4923

Originally assigned to: @Xazin on GitHub.

Bug Description

When creating a code block with some code inside, the up and down keyboard keys are not working. Only left/right is ok.

How to Reproduce

Create a code block with a few lines and try to go up / down with a keyboard

Expected Behavior

The selector will follow the keyboard's arrows

Operating System

MacOS

AppFlowy Version(s)

0.5.2

Screenshots

No response

Additional Context

No response

Originally created by @unbreakabl3 on GitHub (Mar 16, 2024). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/4923 Originally assigned to: @Xazin on GitHub. ### Bug Description When creating a code block with some code inside, the up and down keyboard keys are not working. Only left/right is ok. ### How to Reproduce Create a code block with a few lines and try to go up / down with a keyboard ### Expected Behavior The selector will follow the keyboard's arrows ### Operating System MacOS ### AppFlowy Version(s) 0.5.2 ### Screenshots _No response_ ### Additional Context _No response_
mirror 2026-03-23 21:20:27 +00:00
Author
Owner

@inson1 commented on GitHub (Mar 16, 2024):

i'm on 0.5.0, Windows 10 and I can reproduce it

EDIT
I can reproduce it even on 0.5.2

<!-- gh-comment-id:2002141840 --> @inson1 commented on GitHub (Mar 16, 2024): i'm on 0.5.0, Windows 10 and I can reproduce it EDIT I can reproduce it even on 0.5.2
Author
Owner

@emmggi commented on GitHub (Mar 18, 2024):

Works on Linux on v0.5.2.

<!-- gh-comment-id:2004322653 --> @emmggi commented on GitHub (Mar 18, 2024): Works on Linux on v0.5.2.
Author
Owner

@Xazin commented on GitHub (Apr 5, 2024):

This issue happens for all paragraphs not only the code block, seems to be caused by a regression in this PR https://github.com/AppFlowy-IO/appflowy-editor/pull/657

We will fix it as soon as possible.

<!-- gh-comment-id:2040630910 --> @Xazin commented on GitHub (Apr 5, 2024): This issue happens for all paragraphs not only the code block, seems to be caused by a regression in this PR https://github.com/AppFlowy-IO/appflowy-editor/pull/657 We will fix it as soon as possible.
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#2189
No description provided.