Created attachment 192058 [details] How editing the text field works in current Writer master and in Word 2016 This is a followup to bug 150037 If the attachment 181299 [details] is opened in Writer and you click once on the text input fields, the whole placeholder is selected and typing overwrites it - correctly. However if you click outside of it, and click on it again, Writer again highlights the whole field and typing overwrites it, while in Word it is not highlighted: the cursor is placed inside and you can edit the previously added text. 1. Open attachment 181299 [details] in Writer 2. Click once on the text field after "CREATED BY" and type something -> the placeholder disappears, replaced by the typed text 3. Click outside the field, then on it again -> the whole text you entered is highlighted -> do the same steps in Word: the typed field content is not highlighted. This behavior would make more sense to copy. Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: f5a8d01d381925bba6a2560aacf5ca159fc0bdea CPU threads: 15; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win Locale: hu-HU (hu_HU); UI: en-US Calc: threaded
I confirm the current behaviour, but it makes sense to me: I would expect that in most cases you want to replace the whole text, if you click into a text field. That is exactly what happens in step 2. If you only want to replace some characters, you can move cursor with arrow key.
Using: Version: 7.6.4.1 (X86_64) / LibreOffice Community Build ID: e19e193f88cd6c0525a17fb7a176ed8e6a3e2aa1 CPU threads: 16; OS: Windows 10.0 Build 22631; UI render: Skia/Vulkan; VCL: win Locale: en-US (en_US); UI: en-US Calc: CL threaded I CANNOT confirm this behavior. Clicking off of and then back into the date field just puts the cursor wherever I click and doesn't highlight the whole field. 1. Download and Open Document 2. Click once on the Date field (no placeholder is there for me) 3. Type in either a date or "Hello" 4. Click somewhere in the BUGREPORT 5. Click back on the Date field (nothing is highlighted)
Let's see what the UX/Design team thinks then. (I can see how having everything selected when going back to the field for fixing a typo can be annoying, especially for a field supposed to get a large block of text like "BUGREPORT" in the sample document, but not strong opinion here.)
I don't see a placeholder. Assuming this is a content control with plain text we do use placeholder text "Click here to enter text" (apparently with no option to change this) and on click the whole control is selected. And actually the same happens when I do it with MS Word, which is quite confusing. What exactly should happen when, besides the sample document?
Please reopen with more info.
The fields are FORMTEXT fields. Stored in ODF as <field:fieldmark-start text:name="Bookmark Copy 118" field:type="vnd.oasis.opendocument.field.FORMTEXT"/> <field:fieldmark-separator/> <text:span text:style-name="T14"> </text:span> <field:fieldmark-end/> They are used in forms where the text outside of the fields is protected. Therefore these fields cannot be removed but only the content can be changed. In Word they are by default filled with 4 En Space characters. In the default state Word selects the content on a click into the field. If the content is non default then the content is not selected on a single click.
The dummy text "Click here to enter text" is entirely selected after inserting via Form > Content Control > Plain Text. But it's not selected once the text has been changed (although I couldn't figure out what exactly this means since adding a space keeps the behavior). If the form control contains text everything works like with ordinary paragraphs and one has to double/triple click for selection. Changing this might be beneficial in some scenarios while other require no selection. I wouldn't change the behavior but it also makes sense to follow MSO's example.
Oliver Specht committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/a157f82649e33f05c40aba7fc152733f38fe3f67 tdf#159286 FORMTEXT selection changed It will be available in 25.2.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.