summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
Diffstat (limited to 'svx')
-rw-r--r--svx/source/tbxctrls/layctrl.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/svx/source/tbxctrls/layctrl.cxx b/svx/source/tbxctrls/layctrl.cxx
index 4b9903819588..c70b1822a873 100644
--- a/svx/source/tbxctrls/layctrl.cxx
+++ b/svx/source/tbxctrls/layctrl.cxx
@@ -222,7 +222,8 @@ void TableWindow::KeyInput( const KeyEvent& rKEvt )
break;
case KEY_RETURN:
EndPopupMode( FloatWinPopupEndFlags::CloseAll );
- break;
+ GrabFocusToDocument();
+ return;
case KEY_TAB:
CloseAndShowTableDialog();
break;
@@ -237,6 +238,8 @@ void TableWindow::KeyInput( const KeyEvent& rKEvt )
else if(KEY_MOD1 == nModifier && KEY_RETURN == nKey)
{
EndPopupMode( FloatWinPopupEndFlags::CloseAll );
+ GrabFocusToDocument();
+ return;
}
if(!bHandled)
@@ -248,6 +251,7 @@ void TableWindow::MouseButtonUp( const MouseEvent& rMEvt )
{
SfxPopupWindow::MouseButtonUp( rMEvt );
EndPopupMode( FloatWinPopupEndFlags::CloseAll );
+ GrabFocusToDocument();
}