tdf#109050: Moving table object with ALT+Arrow keys does not work properly

ALT+up/down behaves differently inside a table: cursor is moved
to the left/right neighbouring cell instead of up/down. However
when the whole table is selected a different behavior is expected:
moving the table as an object.

Change-Id: I82c7a3cc7d215b21f19fbf08dcdb7318a7e75289
Reviewed-on: https://gerrit.libreoffice.org/39810
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
This commit is contained in:
Tamás Zolnai
2017-07-10 20:04:52 +02:00
parent ebbde0b693
commit f5637ae74a

View File

@@ -1566,17 +1566,21 @@ SvxTableController::TblAction SvxTableController::getKeyboardAction(const KeyEve
{
if( !bMod1 && bMod2 )
{
if(bTextEdit || mbCellSelectionMode)
{
if( (nCode == awt::Key::UP) || (nCode == awt::Key::NUM8) )
{
nAction = TblAction::GotoLeftCell;
break;
}
else if( (nCode == awt::Key::DOWN) || (nCode == awt::Key::NUM2) )
{
nAction = TblAction::GotoRightCell;
}
break;
}
}
}
bool bTextMove = false;
OutlinerView* pOLV = mpView->GetTextEditOutlinerView();