mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/telegramdesktop/tdesktop
synced 2026-09-20 08:03:45 +08:00
[iv-editor] Added caret move to text edge on unhandled Up and Down.
Regression was introduced in 31d1cb7b6c.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user