Bug 142750 - Text area loses focus when pressing the Format Painter button
Summary: Text area loses focus when pressing the Format Painter button
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
7.2.0.0.alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Selection
  Show dependency treegraph
 
Reported: 2021-06-09 21:22 UTC by Eyal Rozenberg
Modified: 2021-07-20 06:37 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:
Regression By:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eyal Rozenberg 2021-06-09 21:22:47 UTC
In an Impress presentation,

1. Create a (text) box.
2. Enter some text into the box.
3. Select a part of the text you entered.
4. Press the "Format Painter" button on the toolbar.

Result: The textbox text area loses focus; now the box is focused.

Expected result: The text area remains focused.
Comment 1 Eyal Rozenberg 2021-07-01 21:26:58 UTC
Please have a look at this screencast:

https://bugs.documentfoundation.org/attachment.cgi?id=173309

it shows two bugs manifesting: bug 142857 and this one. w.r.t. to this bug, notice how the text box is focused; then some characters are selected; then I press the format painter ("clone formatting") button - and immediately the selection is lost, the cursor is gone, the focus is gone. Never mind what happens later, that part is the other bug.
Comment 2 Buovjaga 2021-07-17 15:31:24 UTC
Repro. Leaving unconfirmed as UX team was summoned

NixOS
Version: 7.3.0.0.alpha0+ / LibreOffice Community
Build ID: b1df9c67349cf4cc5be4128d797aefb87f50e38f
CPU threads: 16; OS: Linux 5.13; UI render: default; VCL: x11
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded
Comment 3 Heiko Tietze 2021-07-19 11:22:09 UTC
Why would you want to copy the format into the same box? And it's also not a big deal to click into the text box. Remember that double-click on the format painter button activates the sticky mode allowing to paste the format on multiple targets until you press escape.
Comment 4 Eyal Rozenberg 2021-07-19 16:20:00 UTC
(In reply to Heiko Tietze from comment #3)
> Why would you want to copy the format into the same box?

Because the same box can contain a lot of content, e.g. multiple bullet points on a slide; and I've done something to part of this content (e.g. made some text have a different font, bold, and with wider spacing), which I now want to do to another part.

> And it's also not a big deal to click into the text box. 

Oh, actually, it is a big deal. Not in terms of effort, but psychologically - it's a big deal because the program is "working against the user": You were already in the box, you were preparing to do something in the box, you were expecting the box text to stay available, and then LO is giving you the finger and un-focusing it - for absolutely no reason and with no justification! It is quite frustrating.

(Also, sometimes it's difficult to get the focus to the box you want because of box overlap and z-ordering, and then it's even more of a big deal.)

> Remember that double-click on the
> format painter button activates the sticky mode allowing to paste the format
> on multiple targets until you press escape.

Well, this would only be relevant if I wanted to apply the same format to many targets; and the first time I press it I would still experience this issue. (And it goes without saying that one-off use of the format painter is at least, and actually more, popular than double-click use of it.)
Comment 5 QA Administrators 2021-07-20 03:38:33 UTC Comment hidden (obsolete)
Comment 6 Heiko Tietze 2021-07-20 06:37:46 UTC
(In reply to Eyal Rozenberg from comment #4)
> .... the program is "working against the user"

Agreed