[Libreoffice-commits] core.git: svx/source
Jim Raykowski (via logerrit)
logerrit at kemper.freedesktop.org
Sun Sep 8 20:00:58 UTC 2019
svx/source/tbxctrls/layctrl.cxx | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
New commits:
commit f76dbe5dc581845996a8bd5f5109c5e2ff5a27b0
Author: Jim Raykowski <raykowj at gmail.com>
AuthorDate: Fri Sep 6 19:17:29 2019 -0800
Commit: Jim Raykowski <raykowj at gmail.com>
CommitDate: Sun Sep 8 22:00:21 2019 +0200
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 at gmail.com>
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();
}
More information about the Libreoffice-commits
mailing list