Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InputField: only soften line breaks inside format tags #253

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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

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
1 participant