tdf#120562 , Selection of favorite character is not applied.

We need to do rView->GrabFocus() , before calling any other function.

Change-Id: I95a64f44c40070caa0064c3e73fb5d7b04b3bf4b
Reviewed-on: https://gerrit.libreoffice.org/65437
Tested-by: Jenkins
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
diff --git a/cui/source/dialogs/cuicharmap.cxx b/cui/source/dialogs/cuicharmap.cxx
index c5e23ee..e85cf44 100644
--- a/cui/source/dialogs/cuicharmap.cxx
+++ b/cui/source/dialogs/cuicharmap.cxx
@@ -864,12 +864,13 @@

IMPL_LINK(SvxCharacterMap, CharClickHdl, SvxCharView*, rView, void)
{
    rView->GrabFocus();

    m_aShowChar.SetText( rView->GetText() );
    m_aShowChar.SetFont(rView->GetFont());
    m_aShowChar.Invalidate();

    setFavButtonState(rView->GetText(), rView->GetFont().GetFamilyName());//check state
    rView->GrabFocus();

    // Get the hexadecimal code
    OUString charValue = rView->GetText();