forked from qt-creator/qt-creator
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:
committed by
Leandro Melo
parent
cd2dec1af8
commit
43a603524b
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user