Commit 43a60352 authored by David Schulz's avatar David Schulz Committed by Leandro Melo

remove selection of text by pressing down-key

on the last text postion

Task-number: QTCREATORBUG-5757
Change-Id: Icc1714a29e5eb74e7d6db413285232a2042f95f2
Reviewed-by: default avatarLeandro Melo <leandro.melo@nokia.com>
parent cd2dec1a
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment