Skip to content

Add triple-click paragraph selection to RichTextLabel#116868

Open
ismailivanov wants to merge 1 commit intogodotengine:masterfrom
ismailivanov:richtextlabel-triple-click-select
Open

Add triple-click paragraph selection to RichTextLabel#116868
ismailivanov wants to merge 1 commit intogodotengine:masterfrom
ismailivanov:richtextlabel-triple-click-select

Conversation

@ismailivanov
Copy link

@ismailivanov ismailivanov commented Feb 27, 2026

Closes godotengine/godot-proposals#14046

Implements triple-click to select an entire paragraph in RichTextLabel, matching the standard behavior found in web browsers and most native text controls.
Previously, triple-clicking would reset the selection. Now, the third click selects the full paragraph the cursor is on. Holding the mouse button on the third click and dragging allows selecting multiple paragraphs, consistent with how double-click + drag selects multiple words.

Before:

538846670-29660d98-3fae-4dff-9a6f-6e4cbeab6be8.mp4

After:

2026-02-28.00-22-23.mp4

@ismailivanov ismailivanov requested a review from a team as a code owner February 27, 2026 23:24
@Nintorch Nintorch added this to the 4.x milestone Feb 28, 2026
@Nintorch Nintorch requested a review from a team February 28, 2026 06:02
Copy link
Contributor

@passivestar passivestar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

UX makes sense and the feature works. Needs code review.

Holding the mouse button on the third click and dragging allows selecting multiple paragraphs, consistent with how double-click + drag selects multiple words.

On a sidenote this doesn't work with selecting multiple words for me, but it also doesn't work in 4.6 so it seems to be unrelated to this PR.

@HolonProduction
Copy link
Member

On a sidenote this doesn't work with selecting multiple words for me, but it also doesn't work in 4.6 so it seems to be unrelated to this PR.

See #116860
Funny timing 😅

@ismailivanov ismailivanov force-pushed the richtextlabel-triple-click-select branch from 993e9c1 to b7f3bb2 Compare February 28, 2026 13:45
Copy link
Member

@Calinou Calinou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally, it works as expected.

triple_click_select.mp4

@ismailivanov ismailivanov force-pushed the richtextlabel-triple-click-select branch from b7f3bb2 to 1a863e4 Compare March 2, 2026 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for triple-clicking text to select a paragraph in RichTextLabel

5 participants