Bug 159286

Summary: Single click inside text field should select full field if it has the placeholder text
Product: LibreOffice Reporter: Gabor Kelemen (allotropia) <kelemeng>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED INSUFFICIENTDATA    
Severity: enhancement CC: aron.budea, dgp-mail, libreoffice-ux-advise, mhillat, stephane.guillou
Priority: low Keywords: needsUXEval
Version: 24.8.0.0 alpha0+   
Hardware: All   
OS: All   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=150037
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 112969    
Attachments: How editing the text field works in current Writer master and in Word 2016

Description Gabor Kelemen (allotropia) 2024-01-19 11:33:44 UTC
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
Comment 1 Dieter 2024-02-09 08:57:37 UTC
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.
Comment 2 Mazmatic Media 2024-02-19 10:22:53 UTC Comment hidden (no-value)
Comment 3 Stéphane Guillou (stragu) 2024-03-21 11:44:43 UTC
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.)
Comment 4 Heiko Tietze 2024-04-04 10:33:04 UTC
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?
Comment 5 Heiko Tietze 2024-05-03 07:18:51 UTC
Please reopen with more info.