element-hq / element-web

A glossy Matrix collaboration client for the web.
https://element.io
Apache License 2.0
10.87k stars 1.92k forks source link

Ctrl+Backspace teleports text cursor #17969

Open nh2 opened 3 years ago

nh2 commented 3 years ago

When pressing Ctrl+Backspace to delete the previous word, Element incorrectl teleports the text cursor to the end of the input box; see video:

https://user-images.githubusercontent.com/399535/125371658-806f5b80-e381-11eb-8569-b97426a2a78b.mp4

Browser: Firefox 89 on Linux

Steps to reproduce

Minimal repro:

Input: a, Shift+Enter, b. You obtain in your input line the multiline message:

a
b

Place the text cursor behind a, and press Ctrl+Backspace. (On OSX a different keyboard combo might delete an entire word this way.)

Now instead of just deleting the a and placing the cursor in its stead, it deletes the a and teleports the text cursor away.

Version information

For the web app:

SimonBrandner commented 2 years ago

This seems to only happen on Firefox