tdf#127257 Place focus in table after table insert

Change-Id: I85860fbdae4aa1dc1cd4ae8f8107c6adbd964474
Reviewed-on: https://gerrit.libreoffice.org/78736
Tested-by: Jenkins
Reviewed-by: Jim Raykowski <raykowj@gmail.com>
diff --git a/svx/source/tbxctrls/layctrl.cxx b/svx/source/tbxctrls/layctrl.cxx
index 4b99038..c70b182 100644
--- a/svx/source/tbxctrls/layctrl.cxx
+++ b/svx/source/tbxctrls/layctrl.cxx
@@ -222,7 +222,8 @@
                break;
            case KEY_RETURN:
                EndPopupMode( FloatWinPopupEndFlags::CloseAll );
                break;
                GrabFocusToDocument();
                return;
            case KEY_TAB:
                CloseAndShowTableDialog();
                break;
@@ -237,6 +238,8 @@
    else if(KEY_MOD1 == nModifier && KEY_RETURN == nKey)
    {
        EndPopupMode( FloatWinPopupEndFlags::CloseAll );
        GrabFocusToDocument();
        return;
    }

    if(!bHandled)
@@ -248,6 +251,7 @@
{
    SfxPopupWindow::MouseButtonUp( rMEvt );
    EndPopupMode( FloatWinPopupEndFlags::CloseAll );
    GrabFocusToDocument();
}