Skip to content

Support Shift+click to extend message text selection#30695

Open
dmitry wants to merge 1 commit into
telegramdesktop:devfrom
dmitry:shift-click-select
Open

Support Shift+click to extend message text selection#30695
dmitry wants to merge 1 commit into
telegramdesktop:devfrom
dmitry:shift-click-select

Conversation

@dmitry

@dmitry dmitry commented May 14, 2026

Copy link
Copy Markdown

When a message has selected text, Shift+click in the same message now extends the selection to the click point, just like in browsers. Previously, Shift+click simply dropped the old selection and started a new one.

Works in regular chats, channels, topics, replies, pinned, and scheduled messages.

How to try: select a few words in a message, then Shift+click somewhere else in the same message - the selection should extend to the click point.

@dmitry dmitry force-pushed the shift-click-select branch from f9f33ba to 8e6830c Compare May 14, 2026 10:01
Comment thread Telegram/SourceFiles/history/history_inner_widget.cpp Outdated
Comment thread Telegram/SourceFiles/history/history_inner_widget.cpp
@dmitry dmitry force-pushed the shift-click-select branch from 8e6830c to e3e13c7 Compare May 14, 2026 10:17
@john-preston

Copy link
Copy Markdown
Member

This is nice! Sadly, we don't track really where the anchor is, so the feel still won't be native (did we select from symbol 20 to symbol 10 or from symbol 10 to symbol 20 and then shift click on symbol 15 - the results should be different, like in browsers, but here we don't save that information). But this a start!

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.

3 participants