Skip to content

🐛(Bug) Ctrl+A does not select the document content on Chrome #3000

Open

Description

@virgile-dev

Problem to solve

In order to copy, delete or restyle a whole document, users press Ctrl+A in the editor. On Chrome, Ctrl+A does not show any selection: the page scrolls to the end of the document and the caret lands at the end of the last text block, as if Ctrl+End had been pressed. Users can't select the whole content with the keyboard and have to drag the mouse across the whole document instead.

Seen on docs.numerique.gouv.fr (Chrome on Linux, signed out, editing a shared document that ends with a heading followed by an embedded video). See the attached video.

Acceptance criteria

Given a user has the caret in a block of a document on Chrome
When they press Ctrl+A (Cmd+A on macOS)
Then the whole document content is selected and shown as selected
And the scroll position does not jump

Given the whole document is selected with Ctrl+A
When the user presses Ctrl+C, then pastes in another document
Then all the blocks are pasted

Given the document ends with a non-text block (image, video, embed)
When the user presses Ctrl+A
Then that block is part of the selection too

Given the user presses Ctrl+A on Firefox or Safari
Then the behaviour is the same as on Chrome

Implementation

TBD. The app does not catch Ctrl+A itself (no handler in features/docs/doc-editor), so ProseMirror's selectAll from BlockNote 0.57.0 handles it. Next step: check whether the selection is missing or only not drawn (a CSS issue), and whether it depends on the last block being a video.

Activity

  1. added
    bug
    on Nov 12, 2026
  2. added theissue type on Nov 12, 2026
  3. MayurK-cmd commented on Nov 12, 2026

    @MayurK-cmd

    hey can i work on this one?

  4. virgile-dev commented on Nov 13, 2026

    @virgile-dev
    CollaboratorAuthor

    @MayurK-cmd I see @rupanjana15 already got it.
    Weirdly enough I could not reproduce it on our production instance this morning using chromium.
    Yesterday I couldn't select with ctrl + A when on Chrome. Today I can...
    I've asked the user who reported this to me to confirm.
    Here is a test document https://docs.numerique.gouv.fr/docs/13c75011-568e-4848-986a-b18e23d0ab54/
    I see that @rupanjana15 caught a different bug when the selection start with a media or ends with a media (current document setup), the medias are not selected and are not copied.

  5. MayurK-cmd commented on Nov 13, 2026

    @MayurK-cmd

    I will just wait then

  6. rupanjana15 commented on Nov 13, 2026

    @rupanjana15

    Thanks @virgile-dev! Yes, #3002 fixes the media part: BlockNote selects the whole document with a text selection, so a media block at the start or end of the document is left out of the selection and isn't copied. I couldn't reproduce the "no selection at all" part outside Docs either.

    Since the original report may not reproduce anymore, should I change the PR to "Related to #3000" instead of "Closes #3000", or open a separate issue for the media bug? Happy to go either way.

  7. virgile-dev commented on Nov 13, 2026

    @virgile-dev
    CollaboratorAuthor

    Related is fine thanks @rupanjana15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugfrontendgood first issue

    Type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions