[GH-ISSUE #2320] [Bug] CTRL+A inside Code Block to select all code #977

Closed
opened 2026-03-23 20:43:57 +00:00 by mirror · 0 comments
Owner

Originally created by @Xazin on GitHub (Apr 22, 2023).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/2320

Bug Description

When inside a Code Block, and I want to copy it all, I can't do CTRL + A, it selects the whole document.

I added two behaviors, to clearly indicate that the expected behavior when cursor is outside of a code block shouldn't change.

How to Reproduce

  1. Add a Code Block to an existing document
  2. Add some text in it
  3. Use shortcut CTRL + A whilst the cursor is inside the code block
  4. Selects all of the document

 

  1. Add a Code Block to an existing document
  2. Add some text in it
  3. Use shortcut CTRL + A whilst the cursor is outside the code block
  4. Selects all of the document

Expected Behavior

  1. Add a Code Block to an existing document
  2. Add some text in it
  3. Use shortcut CTRL + A whilst the cursor is inside the code block
  4. Selects all of the code inside the code block

 

  1. Add a Code Block to an existing document
  2. Add some text in it
  3. Use shortcut CTRL + A whilst the cursor is outside the code block
  4. Selects all of the document

Operating System

Windows

AppFlowy Version(s)

main

Screenshots

No response

Additional Context

No response

Originally created by @Xazin on GitHub (Apr 22, 2023). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/2320 ### Bug Description When inside a Code Block, and I want to copy it all, I can't do `CTRL + A`, it selects the whole document. I added two behaviors, to clearly indicate that the expected behavior when cursor is outside of a code block shouldn't change. ### How to Reproduce 1. Add a Code Block to an existing document 2. Add some text in it 3. Use shortcut `CTRL + A` whilst the cursor is inside the code block 4. Selects all of the document   1. Add a Code Block to an existing document 2. Add some text in it 3. Use shortcut `CTRL + A` whilst the cursor is outside the code block 4. Selects all of the document ### Expected Behavior 1. Add a Code Block to an existing document 2. Add some text in it 3. Use shortcut `CTRL + A` whilst the cursor is inside the code block 4. Selects all of the code inside the code block   1. Add a Code Block to an existing document 2. Add some text in it 3. Use shortcut `CTRL + A` whilst the cursor is outside the code block 4. Selects all of the document ### Operating System Windows ### AppFlowy Version(s) `main` ### Screenshots _No response_ ### Additional Context _No response_
mirror 2026-03-23 20:43:57 +00:00
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#977
No description provided.