diff options
Diffstat (limited to 'svx/source/tbxctrls/tbcontrl.cxx')
-rw-r--r-- | svx/source/tbxctrls/tbcontrl.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx index 94a4860fbb72..d7c5031004da 100644 --- a/svx/source/tbxctrls/tbcontrl.cxx +++ b/svx/source/tbxctrls/tbcontrl.cxx @@ -1451,6 +1451,7 @@ ColorWindow::ColorWindow(const OUString& rCommand, mxColorSet->SetSelectHdl(LINK( this, ColorWindow, SelectHdl)); mxRecentColorSet->SetSelectHdl(LINK( this, ColorWindow, SelectHdl)); mxTopLevel->set_help_id(HID_POPUP_COLOR); + mxTopLevel->connect_focus_in(LINK(this, ColorWindow, FocusHdl)); mxColorSet->SetHelpId(HID_POPUP_COLOR_CTRL); mxPaletteManager->ReloadColorSet(*mxColorSet); @@ -1471,6 +1472,11 @@ ColorWindow::ColorWindow(const OUString& rCommand, } } +IMPL_LINK_NOARG(ColorWindow, FocusHdl, weld::Widget&, void) +{ + mxColorSet->GrabFocus(); +} + void SvxColorWindow::ShowNoneButton() { mpButtonNoneColor->Show(); |