From e88c0c841ea177c490e2f2ac1c5a65ec3876757c Mon Sep 17 00:00:00 2001 From: Ariel Constenla-Haile Date: Fri, 30 Dec 2011 14:25:40 +0000 Subject: i118707 - make toolbar control's popup window grab focus --- svtools/source/uno/popupwindowcontroller.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'svtools') diff --git a/svtools/source/uno/popupwindowcontroller.cxx b/svtools/source/uno/popupwindowcontroller.cxx index b420f372248e..00548c5bad9e 100644 --- a/svtools/source/uno/popupwindowcontroller.cxx +++ b/svtools/source/uno/popupwindowcontroller.cxx @@ -238,7 +238,11 @@ Reference< awt::XWindow > SAL_CALL PopupWindowController::createPopupWindow() th { pWin->EnableDocking(true); mpImpl->SetPopupWindow(pWin,pToolBox); - ::Window::GetDockingManager()->StartPopupMode( pToolBox, pWin, FLOATWIN_POPUPMODE_NOFOCUSCLOSE|FLOATWIN_POPUPMODE_ALLMOUSEBUTTONCLOSE |FLOATWIN_POPUPMODE_NOMOUSEUPCLOSE ); + ::Window::GetDockingManager()->StartPopupMode( pToolBox, pWin, + FLOATWIN_POPUPMODE_GRABFOCUS | + FLOATWIN_POPUPMODE_NOFOCUSCLOSE | + FLOATWIN_POPUPMODE_ALLMOUSEBUTTONCLOSE | + FLOATWIN_POPUPMODE_NOMOUSEUPCLOSE ); } } return Reference< awt::XWindow >(); -- cgit