diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-09-04 15:18:32 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-09-05 09:54:07 +0200 |
commit | 1d4f03114f3fb04fc1b493193e3eddee07cdabb8 (patch) | |
tree | 83c59aee4a809e999c92958bce8c6364edc0a9a1 /svx/source/tbxctrls | |
parent | 11d513d580ed8b80fd32987cb9c73716b48ca916 (diff) |
default focus colorset on popover gaining focus
Change-Id: Icb731c4c9544d754bb3ad88ecf15ffc04f216294
Reviewed-on: https://gerrit.libreoffice.org/60006
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx/source/tbxctrls')
-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 68282f45acd6..a0bcc10d34e9 100644 --- a/svx/source/tbxctrls/tbcontrl.cxx +++ b/svx/source/tbxctrls/tbcontrl.cxx @@ -1452,6 +1452,7 @@ ColorWindow::ColorWindow(std::shared_ptr<PaletteManager> const & rPaletteManager 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); @@ -1466,6 +1467,11 @@ ColorWindow::ColorWindow(std::shared_ptr<PaletteManager> const & rPaletteManager AddStatusListener( ".uno:ColorTableState" ); } +IMPL_LINK_NOARG(ColorWindow, FocusHdl, weld::Widget&, void) +{ + mxColorSet->GrabFocus(); +} + void SvxColorWindow::ShowNoneButton() { mpButtonNoneColor->Show(); |