diff options
author | Jim Raykowski <raykowj@gmail.com> | 2019-09-06 19:17:29 -0800 |
---|---|---|
committer | Jim Raykowski <raykowj@gmail.com> | 2019-09-08 22:00:21 +0200 |
commit | f76dbe5dc581845996a8bd5f5109c5e2ff5a27b0 (patch) | |
tree | 930b8d59ba1a7fb3a7943fdd4973e9a10a1bf321 /svx/source/tbxctrls | |
parent | 89e5af0b698b4748575966d30349af10cfe452f2 (diff) |
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>
Diffstat (limited to 'svx/source/tbxctrls')
-rw-r--r-- | svx/source/tbxctrls/layctrl.cxx | 6 |
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(); } |