godot icon indicating copy to clipboard operation
godot copied to clipboard

Unable to set cursor caret to start of a wrapped line using the mouse.

Open larry-fuqua opened this issue 10 months ago • 1 comments

Tested versions

  • Reproducible in: v4.2.1.stable.mono.official [b09f793f5] and v4.3.dev5.mono.official [89f70e98d]
  • Not sure if it was not reproducible in any older versions

System information

Godot v4.3.dev5.mono - Windows 10.0.19045 - Vulkan (Forward+) - dedicated GeForce GTX 870M () - Intel(R) Core(TM) i7-4710HQ CPU @ 2.50GHz (8 Threads)

Issue description

Can't use the mouse to left-click and position the edit cursor/selection caret at the front of a new line that was formed from wrapping text. Should be able to click to the left of the center of the first character of word wrapped lines to position or selection from the start of the line.

Steps to reproduce

When working with a TextEdit with word wrap on, and with text that has word-wrapped to multiple lines, try left-clicking with the mouse to position the cursor into the front position of each line. This should be doable by clicking anywhere to the left side of the starting character on the line. On the first line, the caret position appropriately sets at the front of the line. For any subsequent wrapped line, it positions the cursor after the first character. You can use keyboard arrow keys to move to the correct position. Also, if you left-click with the mouse at the end of a line that wraps, it will correctly position the caret to the start of the next line. You just can't directly click there as would be expected. This also means you can't select from the start of the line in a natural manner. You have to start selecting from the end of the line above.

Minimal reproduction project (MRP)

TextEdit_MouseCursor.zip

larry-fuqua avatar Apr 24 '24 17:04 larry-fuqua

Can you please try in 4.2.2?

AThousandShips avatar Apr 24 '24 18:04 AThousandShips

  • duplicate of https://github.com/godotengine/godot/issues/88632

kitbdev avatar May 15 '24 01:05 kitbdev