Bug 122810 - UI: Main editor unfocused when cursor in search field of the floating search dialog
Summary: UI: Main editor unfocused when cursor in search field of the floating search ...
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.4.7.2 release
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Find-Toolbar
  Show dependency treegraph
 
Reported: 2019-01-18 18:41 UTC by Telesto
Modified: 2019-05-29 09:52 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Screencast (639.01 KB, video/mp4)
2019-05-27 16:18 UTC, Telesto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Telesto 2019-01-18 18:41:27 UTC
Description:
UI: Main editor unfocused when cursor in search field of the floating search dialog. Not sure if this is to be expected or not.. However most floating windows/widgets leave the focus on the main window

Steps to Reproduce:
1. Open Writer
2. Press CTRL+F
3. Undo the search toolbar & place the cursor inside the search box -> Focus gone from main window (gray)
4. Dock the search bar & do the same.. fine
5. Make a font color widget floating.. select a color -> Main editor has focus

Actual Results:
Main window loses focus

Expected Results:
The main should be marked 'active'. 


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 6.3.0.0.alpha0+
Build ID: 6740443311268b7d918bf4f43134d64fb78a0109
CPU threads: 4; OS: Windows 6.3; UI render: GL; VCL: win; 
TinderBox: Win-x86@42, Branch:master, Time: 2019-01-15_23:37:04
Locale: nl-NL (nl_NL); UI-Language: en-US
Calc: CL
Comment 1 Dieter 2019-05-26 20:56:36 UTC
Telesto, I'm not sure, if I understaood all steps. Perhaps it is possible to add a screencast.
Comment 2 Telesto 2019-05-27 16:18:55 UTC
Created attachment 151707 [details]
Screencast

Cursor stays in document with Font color.. but clicking the search field and the cursor is gone from main editor..

Again not 100% sure what to expect
Comment 3 Maxim Monastirsky 2019-05-27 22:06:41 UTC
A floating find toolbar is a separate window, so IMHO it's expected to steal the focus from the main window, when clicking inside its search box.

(In reply to Telesto from comment #2)
> Cursor stays in document with Font color
Actually the font color widget steals the focus as well. You can verify it by clicking in the palettes list. It just that the palette itself has a code to return the focus to the document *after* a color was selected - as implemented in Bug 114935. This is similar to font name/size controls in a floating formatting toolbar: They steal the focus when you click them, but bring the focus back to the document once you selected a font name/size.
Comment 4 Telesto 2019-05-29 09:52:17 UTC
(In reply to Maxim Monastirsky from comment #3)
> A floating find toolbar is a separate window, so IMHO it's expected to steal
> the focus from the main window, when clicking inside its search box.
> 
> (In reply to Telesto from comment #2)
> > Cursor stays in document with Font color
> Actually the font color widget steals the focus as well. You can verify it
> by clicking in the palettes list. It just that the palette itself has a code
> to return the focus to the document *after* a color was selected - as
> implemented in Bug 114935. This is similar to font name/size controls in a
> floating formatting toolbar: They steal the focus when you click them, but
> bring the focus back to the document once you selected a font name/size.

Thanks for the input There was a reason why I brought this up.. but not sure anymore.

Lets close this..