Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Ctrl+Backspace deletes everything instead of just one word #603

Closed
frebib opened this issue Mar 4, 2023 · 2 comments
Closed

Ctrl+Backspace deletes everything instead of just one word #603

frebib opened this issue Mar 4, 2023 · 2 comments

Comments

@frebib
Copy link

frebib commented Mar 4, 2023

Almost every text field in every software ever supports Ctrl+Backspace to delete one word (except some, looking at you Microsoft 👀). In the Rich Text editor in Element Desktop (web) (nightly) it seems to delete multiple words, even when there is no formatting in the text field
Peek 2023-03-04 16-07

Element Web (without the RTE lab turned on) deletes one word (word char delimited) with Ctrl+Backspace
Peek 2023-03-04 16-10

@artcodespace
Copy link
Contributor

I've just had a look at this - error lies in event.ts > getInputFromKeyDown, it's using ctrl or meta as the modifier and this results in it firing the "deleteSoftLineBackward" event which results in this behaviour

@artcodespace artcodespace self-assigned this Jul 12, 2023
@jonnyandrew jonnyandrew added the bug label Oct 4, 2023
@jonnyandrew
Copy link
Contributor

Fixed by #751

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants