[iv-editor] Added caret move to text edge on unhandled Up and Down.

Regression was introduced in 31d1cb7b6c.
This commit is contained in:
23rd
2026-09-09 17:09:08 +03:00
committed by John Preston
parent b9d623649e
commit 6302c0b61a

View File

@@ -8969,6 +8969,11 @@ bool Widget::handleFieldKey(QKeyEvent *e) {
handled = enterStructuralSelectionFromField(down, false);
}
}
if (!handled && !_field->isHidden() && modifiers == Qt::NoModifier) {
handled = moveFieldCursor(
down ? QTextCursor::End : QTextCursor::Start,
QTextCursor::MoveAnchor);
}
if (handled) {
e->accept();
}