Skip to content

Composer focus lost when applying mark-up to full line in multi-line text #32861

@Johennes

Description

@Johennes

Steps to reproduce

  1. Focus the message composer / text input
  2. Enter "foo"
  3. Hit SHIFT + Enter to start a new line
  4. Use the keyboard to navigate back to the first line ("foo")
  5. Use the keyboard to select the entire first line
  6. Hit CMD + B to bold the selected text
  7. Notice that the line is wrapped in ** but the composer loses focus. To continue typing, you have to refocus it, e.g. by clicking into it.

Outcome

What did you expect?

The editor to keep focus with the cursor being placed either at the beginning or the end of the line.

What happened instead?

The editor lost focus.

Operating system

macOS

Application version

Element version: 1.12.12 Crypto version: Rust SDK 0.16.0 (82e97d4), Vodozemac 0.9.0

How did you install the app?

Element website

Homeserver

matrix.org

Will you send logs?

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-ComposerA-ElectronA-Rich-Text-EditorIssues with the new rich text editor, also known as the WYSIWYG editorO-UncommonMost users are unlikely to come across this or unexpected workflowS-MinorImpairs non-critical functionality or suitable workarounds existT-Defect

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions