Bug 158571 - Typing into a text content control replaces the placeholder but moves the cursor outside the control
Summary: Typing into a text content control replaces the placeholder but moves the cur...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.4.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks: DOCX-Content_Control
  Show dependency treegraph
 
Reported: 2023-12-06 22:15 UTC by Gabor Kelemen (allotropia)
Modified: 2024-10-21 14:14 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
How it looks after inserting the content control (10.16 KB, image/png)
2023-12-06 22:15 UTC, Gabor Kelemen (allotropia)
Details
The content control after typing two characters: one inside, the other outside (8.99 KB, image/png)
2023-12-06 22:16 UTC, Gabor Kelemen (allotropia)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gabor Kelemen (allotropia) 2023-12-06 22:15:22 UTC
Created attachment 191282 [details]
How it looks after inserting the content control

When a Rich text content control is inserted in Writer and the user starts to type instantly (as the placeholder suggests), the placeholder text is replaced by the first letter, but the cursor is moved outside of the content control.

1. Go to Form - Content Controls - Rich text
2. Start typing some letters
-> the first letter replaces the placeholder text, the subsequent ones are outside of the content control.

Version: 24.2.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 43967453e15e1d054972a7586cfef8f8e0866270
CPU threads: 15; OS: Windows 10.0 Build 19045; UI render: default; VCL: win
Locale: hu-HU (hu_HU); UI: en-US
Calc: threaded

Started in 7.4, with:
https://git.libreoffice.org/core/+/1e9416fac497a58be04011cfa0ffce9c74a9e397

author	Miklos Vajna <vmiklos@collabora.com>	Wed May 11 09:29:05 2022 +0200
committer	Miklos Vajna <vmiklos@collabora.com>	Wed May 11 12:22:48 2022 +0200

sw content controls: introduce a word breaking dummy char at the end

Before it was not perfect (but much better): typed characters continued to be inserted into the content control, but pressing right arrow moved the cursor behind the first character after the control, and not between the end and the first character. 
Now the cursor can be moved back to the content control, but only before the last character inside.

For comparison Word does it
Comment 1 Gabor Kelemen (allotropia) 2023-12-06 22:16:02 UTC
Created attachment 191283 [details]
The content control after typing two characters: one inside, the other outside
Comment 2 Gabor Kelemen (allotropia) 2023-12-06 22:16:52 UTC Comment hidden (obsolete)
Comment 3 LeroyG 2024-10-14 19:01:19 UTC
Reproducible with:
Version: 24.8.2.1 (X86_64) / LibreOffice Community
Build ID: 0f794b6e29741098670a3b95d60478a65d05ef13
CPU threads: 4; OS: Windows 10 X86_64 (10.0 build 17763); UI render: Skia/Raster; VCL: win
Locale: es-AR (es_AR); UI: es-ES
Calc: threaded