terminal: Add right-click in terminal to create a new selection if none is present (#29131)

This PR adds functionality to right click in terminal create new
selection if none present. The selection is identical with double click
a text in terminal, plus the logic is moved from the double-click in the
terminal::mouse_down.

Closes #28237 

Release Notes:
- Adds functionality to right click in terminal create new selection if
none present
f8ac6eef75Ho Chun Lau committed on 4/21/2025, 3:39:17 PM· committed by GitHubparent6d2bdc3
2 files changedLine totals unavailable