Skip to content

Issue with text replacement on mac #31538

@twine-and-hope

Description

@twine-and-hope

Steps to reproduce

The error involves the text replacement feature built into MacOS (I'm running Ventura 13.2); you need to have a text replacement rule set up before you can replicate the error.

To add a new text replacement rule:

  1. open settings and go to 'Keyboard'
  2. select 'Text Replacements...'
  3. press the '+' in the bottom left corner of the dialog that appears
  4. enter your replacement rules and click 'Add'

Screenshots:
Image
Image
Image
Image

To replicate the error:

  1. Open element
  2. Type your term to be replaced into the text box

Outcome

What did you expect?

Here is a video of the expected behaviour in a unrelated text editor, followed by the error behaviour in Element.

Screen.Recording.2025-11-23.at.10.33.52.mov
  1. The text replacement rules automatically trigger when you press the space bar after enter a term from the list of 'Replace' terms

  2. It removes the 'Replace' term (from the replacement rule) and inserts the 'With' term (from the replacement rule), followed by a space.

In other programs:
3a. After the replacement, the cursor ends up at the end of the new text, after the space

What happened instead?

In Element:
3b. After the replacement, the cursor ends up adjacent to the inserted 'With' term, before the space

This error is new as of a recent Element update. Prior to November 2025, text replacement worked as expected in Element.

Operating system

Mac OS Ventura 13.2

Application version

Element version: 1.12.6

How did you install the app?

https://element.io/en/download

Homeserver

matrix.org

Will you send logs?

Yes

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-DefectX-Cannot-Reproduce

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions