sc/source/ui/unoobj/docuno.cxx | 3 +++ 1 file changed, 3 insertions(+)
New commits: commit bb15577b0246f1075d3edeec04d586d2a0de7841 Author: Szymon Kłos <szymon.k...@collabora.com> AuthorDate: Mon Oct 11 14:50:49 2021 +0200 Commit: Szymon Kłos <szymon.k...@collabora.com> CommitDate: Mon Oct 11 15:49:12 2021 +0200 lok: sc: focus gridwin before use commit ef29f8c57dbb73ee3bd2e09ea557b86bf3eacfa6 lok: sc: update ScModelObj::postMouseEvent introduced Drag&drop for online. One missing thing was getting the focus for gridwin before mouse event processing like it is done in LOKPostAsyncEvent Change-Id: I4063340985f7dcc91cf5382631615119e28ea3f9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123391 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Reviewed-by: Szymon Kłos <szymon.k...@collabora.com> diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx index dd363a4e1713..0eb5f1fd73e1 100644 --- a/sc/source/ui/unoobj/docuno.cxx +++ b/sc/source/ui/unoobj/docuno.cxx @@ -752,6 +752,9 @@ void ScModelObj::postMouseEvent(int nType, int nX, int nY, int nCount, int nButt if (LokControlHandler::postMouseEvent(pPage, pDrawView, *pGridWindow, nType, aPointHMM, nCount, nButtons, nModifier)) return; + if (!pGridWindow->HasChildPathFocus(true)) + pGridWindow->GrabFocus(); + // Calc operates in pixels... const Point aPosition(nX * pViewData->GetPPTX() + pGridWindow->GetOutOffXPixel(), nY * pViewData->GetPPTY() + pGridWindow->GetOutOffYPixel());