[Libreoffice-commits] core.git: svx/source
TJ Holt (via logerrit)
logerrit at kemper.freedesktop.org
Mon Mar 16 23:25:22 UTC 2020
svx/source/tbxctrls/layctrl.cxx | 8 ++++++++
1 file changed, 8 insertions(+)
New commits:
commit 1fbeba66e823cea043fdd3f4c50d7b90585aaf30
Author: TJ Holt <troy.j.holt at gmail.com>
AuthorDate: Thu Mar 12 13:36:42 2020 -0700
Commit: Jim Raykowski <raykowj at gmail.com>
CommitDate: Tue Mar 17 00:24:45 2020 +0100
tdf#127443 Table creation with keyboard
Change-Id: If0efe4c49e2da96677f24182afc39e640421b0a2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90192
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 6683500ec4a0..88b110e8c1f1 100644
--- a/svx/source/tbxctrls/layctrl.cxx
+++ b/svx/source/tbxctrls/layctrl.cxx
@@ -189,7 +189,11 @@ bool TableWidget::KeyInput(const KeyEvent& rKEvt)
break;
case KEY_DOWN:
if ( nNewLine < TABLE_CELLS_VERT )
+ {
nNewLine++;
+ if ( nNewCol == 0 )
+ nNewCol = 1;
+ }
else
mxControl->CloseAndShowTableDialog();
break;
@@ -201,7 +205,11 @@ bool TableWidget::KeyInput(const KeyEvent& rKEvt)
break;
case KEY_RIGHT:
if ( nNewCol < TABLE_CELLS_HORIZ )
+ {
nNewCol++;
+ if ( nNewLine == 0 )
+ nNewLine = 1;
+ }
else
mxControl->CloseAndShowTableDialog();
break;
More information about the Libreoffice-commits
mailing list