fix: Reduce chance of input view jumping to first line after deleting input (#1753)
Is not a complete fix as noted in the PR comments as focus isn't actually changed, but an incremental improvement for now.
This commit is contained in:
@@ -569,7 +569,7 @@ void ModelInputsPage::build(FormWindow *window, int8_t focusIndex)
|
|||||||
});
|
});
|
||||||
menu->addLine(STR_DELETE, [=]() {
|
menu->addLine(STR_DELETE, [=]() {
|
||||||
deleteExpo(inputIndex);
|
deleteExpo(inputIndex);
|
||||||
rebuild(window, -1);
|
rebuild(window, inputIndex);
|
||||||
});
|
});
|
||||||
return 0;
|
return 0;
|
||||||
});
|
});
|
||||||
@@ -620,7 +620,7 @@ void ModelInputsPage::build(FormWindow *window, int8_t focusIndex)
|
|||||||
: s_copySrcIdx);
|
: s_copySrcIdx);
|
||||||
s_copyMode = 0;
|
s_copyMode = 0;
|
||||||
}
|
}
|
||||||
rebuild(window, -1);
|
rebuild(window, inputIndex);
|
||||||
return 0;
|
return 0;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user