mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[escher] TextField and LayoutField handle move events while in editing
mode to avoid leaving unexpectedly edition mode
This commit is contained in:
@@ -56,7 +56,7 @@ bool SumGraphController::handleEvent(Ion::Events::Event event) {
|
||||
if ((int)m_step > 1 && event != Ion::Events::OK && event != Ion::Events::EXE && event != Ion::Events::Back) {
|
||||
return false;
|
||||
}
|
||||
if (event == Ion::Events::Left && !m_legendView.textField()->isEditing()) {
|
||||
if (event == Ion::Events::Left) {
|
||||
if ((int)m_step > 0 && m_startSum >= m_cursor->x()) {
|
||||
return false;
|
||||
}
|
||||
@@ -66,7 +66,7 @@ bool SumGraphController::handleEvent(Ion::Events::Event event) {
|
||||
}
|
||||
return false;
|
||||
}
|
||||
if (event == Ion::Events::Right && !m_legendView.textField()->isEditing()) {
|
||||
if (event == Ion::Events::Right) {
|
||||
if (moveCursorHorizontallyToPosition(cursorNextStep(m_cursor->x(), 1))) {
|
||||
m_graphView->reload();
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user