sfx2/source/dialog/dockwin.cxx | 3 +++ 1 file changed, 3 insertions(+)
New commits: commit 4865ad2365a25d89e61d382613a1f35c78800f4d Author: Caolán McNamara <[email protected]> AuthorDate: Thu Nov 3 12:21:23 2022 +0000 Commit: Caolán McNamara <[email protected]> CommitDate: Thu Nov 3 16:45:52 2022 +0100 Resolves: tdf#151112 move focus into container widget hierarchy Change-Id: I5e5ca5a377f8e4c79ec8b2e4c2674be7ed0c10a1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142230 Tested-by: Jenkins Reviewed-by: Caolán McNamara <[email protected]> diff --git a/sfx2/source/dialog/dockwin.cxx b/sfx2/source/dialog/dockwin.cxx index 83c01c7f8475..ce37aa53ec8d 100644 --- a/sfx2/source/dialog/dockwin.cxx +++ b/sfx2/source/dialog/dockwin.cxx @@ -1456,6 +1456,9 @@ bool SfxDockingWindow::EventNotify( NotifyEvent& rEvt ) // base class, otherwise the parent learns nothing // if ( rEvt.GetWindow() == this ) PB: #i74693# not necessary any longer ResizableDockingWindow::EventNotify( rEvt ); + // tdf#151112 move focus into container widget hierarchy if not already there + if (m_xContainer && !m_xContainer->has_child_focus()) + m_xContainer->child_grab_focus(); return true; } else if( rEvt.GetType() == NotifyEventType::KEYINPUT )
