diff --git a/svx/source/table/tablecontroller.cxx b/svx/source/table/tablecontroller.cxx index 3e49ca7b07b4..96db2db82e80 100644 --- a/svx/source/table/tablecontroller.cxx +++ b/svx/source/table/tablecontroller.cxx @@ -1567,15 +1567,19 @@ SvxTableController::TblAction SvxTableController::getKeyboardAction(const KeyEve if( !bMod1 && bMod2 ) { - if( (nCode == awt::Key::UP) || (nCode == awt::Key::NUM8) ) + if(bTextEdit || mbCellSelectionMode) { - nAction = TblAction::GotoLeftCell; + 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; + } } - else if( (nCode == awt::Key::DOWN) || (nCode == awt::Key::NUM2) ) - { - nAction = TblAction::GotoRightCell; - } - break; } bool bTextMove = false;