Skip to content

Text cursor skipping a line when removing a line of text #22335

Closed
matrix-org/matrix-react-sdk
#11128
@anoadragon453

Description

@anoadragon453

Steps to reproduce

Apologies for the issue name, but this is something that's best explained by video:

lines.mp4

The steps to reproduce are:

  • Write some text into the message composer window.
  • Use Shift-Enter at the beginning of the text to add an extra two newlines.
  • Move your cursor up two lines and enter a character or two.
  • Use the backspace key to delete those characters you've just entered.
  • After deleting the last character, you'd expect the cursor to move back to where that character initially was.
  • Instead, the cursor jumps down a line.

Outcome

The text cursor jumps around in certain cases. This can be especially confusing for accessibility.

Potentially related, although that issue was determined to only occur in Firefox: #17969

Operating system

Arch Linux

Application version

Element Nightly version: 2022051801, Olm version: 3.2.8

How did you install the app?

https://aur.archlinux.org/packages/element-desktop-nightly-bin

Homeserver

No response

Will you send logs?

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-ComposerO-OccasionalAffects or can be seen by some users regularly or most users rarelyS-MinorImpairs non-critical functionality or suitable workarounds existT-Defect

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions