X Tutup
Skip to content

Fix TextEdit Shift+Click selection start position#114772

Merged
Repiteo merged 1 commit intogodotengine:masterfrom
kitbdev:fix-te-shift-click
Jan 9, 2026
Merged

Fix TextEdit Shift+Click selection start position#114772
Repiteo merged 1 commit intogodotengine:masterfrom
kitbdev:fix-te-shift-click

Conversation

@kitbdev
Copy link
Contributor

@kitbdev kitbdev commented Jan 9, 2026

There were 2 issues here.
On symbol lookup click in CodeEdit, the mouse released event never makes it to TextEdit, so the logic that changes the selection mode in #111535 never gets hit.
Moving the caret with the arrow keys or directly with the function never updated the word column, which is now needed.

The symbol lookup now falls through to TextEdit.
The word beg/end columns are now set when the selection origin is updated, which includes select(), so it should always be updated by the time they are used in _update_selection_mode_pointer. This also covers ones from _pre_shift_selection that I removed.

Added a few tests, and made the tests in this test case always send a mouse release event to be more accurate to expected behavior.

@kitbdev kitbdev added this to the 4.6 milestone Jan 9, 2026
@kitbdev kitbdev requested review from a team as code owners January 9, 2026 00:05
@kitbdev kitbdev force-pushed the fix-te-shift-click branch from d46504d to 9813c83 Compare January 9, 2026 15:48
@Repiteo Repiteo merged commit 87ab522 into godotengine:master Jan 9, 2026
20 checks passed
@Repiteo
Copy link
Contributor

Repiteo commented Jan 9, 2026

Thanks!

@kitbdev kitbdev deleted the fix-te-shift-click branch January 9, 2026 16:41
rivie13 pushed a commit to rivie13/Phoenix-Agentic-Engine that referenced this pull request Feb 16, 2026
Fix TextEdit Shift+Click selection start position
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.

Shift + Click to select words is broken

4 participants

X Tutup