[expression_editor] Handle ShiftLeft and ShiftRight events.

Change-Id: Id416d1c95d023b8a0a4348a2570dd332615aa2b8
This commit is contained in:
Léa Saviot
2017-12-20 13:58:31 +01:00
parent 37af765124
commit c24de3c069

View File

@@ -65,12 +65,17 @@ bool Controller::handleMoveEvent(Ion::Events::Event event) {
return m_cursor.moveDown();
}
if (event == Ion::Events::ShiftLeft) {
//TODO
return false;
// The cursor should never point to the main HorizontalLayout.
m_cursor.setPointedExpressionLayout(m_expressionLayout);
m_cursor.setPosition(ExpressionLayoutCursor::Position::Left);
m_cursor.setPositionInside(0);
return true;
}
if (event == Ion::Events::ShiftRight) {
//TODO
return false;
m_cursor.setPointedExpressionLayout(m_expressionLayout);
m_cursor.setPosition(ExpressionLayoutCursor::Position::Right);
m_cursor.setPositionInside(0);
return true;
}
return false;
}