mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-20 22:30:30 +01:00
[expression_editor] Handle ShiftLeft and ShiftRight events.
Change-Id: Id416d1c95d023b8a0a4348a2570dd332615aa2b8
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user