remove selection of text by pressing down-key

on the last text postion

Task-number: QTCREATORBUG-5757
Change-Id: Icc1714a29e5eb74e7d6db413285232a2042f95f2
Reviewed-by: Leandro Melo <leandro.melo@nokia.com>
This commit is contained in:
David Schulz
2012-01-23 14:18:08 +01:00
committed by Leandro Melo
parent cd2dec1af8
commit 43a603524b

View File

@@ -1519,8 +1519,8 @@ bool BaseTextEditorWidget::cursorMoveKeyEvent(QKeyEvent *e)
camelCaseRight(cursor, mode);
} else if (camelCaseNavigationEnabled() && op == QTextCursor::WordLeft) {
camelCaseLeft(cursor, mode);
} else {
cursor.movePosition(op, mode);
} else if (!cursor.movePosition(op, mode) && mode == QTextCursor::MoveAnchor) {
cursor.clearSelection();
}
cursor.setVisualNavigation(visualNavigation);