element-hq / element-hq/element-web

Backspace and delete behave incorrectly in composer when selecting quickly on Firefox

Open
#27,625 0 comments 0 reactions 0 assignees View on GitHub
A-Composer O-Occasional S-Minor T-Defect Z-Platform-Specific
Dominant language
TypeScript
Stars
13.5k
Forks
2.8k
PR merge metrics
PR metrics pending

Description

### Steps to reproduce

Attempt to type in the composer in any room.
Select all with CTRL+A or equivalent, and very quickly press backspace. Nothing will happen, and the cursor will return to the beginning of the input area
![test](https://github.com/element-hq/element-web/assets/12480919/dea81f60-4d96-4132-9a75-3b439b959fb4)

Of note, the 'delete' key works _partially_, but not as intended, and somehow differently from backspace. It will delete portions of the message, up to where spaces are present, or the whole message if there are no spaces.
![test2](https://github.com/element-hq/element-web/assets/12480919/95c8f506-68a5-47d5-86c7-226dd3d7aef5)

### Outcome

#### What did you expect?
In both instances, the entire message should be deleted, as the entire message is selected.

#### What happened instead?
See above.

### Operating system

Windows 8.1

### Browser information

Firefox 115.12.0esr (64-bit). Not reproducible on Chrome.

### URL for webapp

https://app.element.io/

### Application version

1.11.69

### Homeserver

matrix.org

### Will you send logs?

No

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.