Skip to content

Conversation

@kolayne
Copy link

@kolayne kolayne commented Dec 29, 2024

In InputField::PrepareForInsert, avoid replacing all line break characters with kSoftLine (aka QChar::LineSeparator) because that makes the selection behavior inconsistent (different for typed text and restored text, e.g., from a draft). Instead, only soften line breaks inside formatting tags.

Should fix telegramdesktop/tdesktop#28805

@kolayne
Copy link
Author

kolayne commented Jan 20, 2025

@john-preston, is there any news on this?

@kolayne kolayne force-pushed the InputField-soft-linebreaks branch from 55cc093 to 9744711 Compare January 21, 2025 05:20
In `InputField::PrepareForInsert`, avoid replacing all line break
characters with `kSoftLine` (aka `QChar::LineSeparator`) because that
makes the selection behavior inconsistent (different for typed text and
restored text, e.g., from a draft). Instead, only soften line breaks
inside formatting tags.

Should fix telegramdesktop/tdesktop#28805
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Message edit: triple click on a word should select the line, not the whole message

2 participants