forked from qt-creator/qt-creator
Editor: Also fix DeleteStartOfWord for camel case deactivated
this amends 5a4bfb2460
Change-Id: Ibd635e47e8ed90cb26f7a2ba233582ab540618ca
Fixes: QTCREATORBUG-12377
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -2396,7 +2396,7 @@ void TextEditorWidget::keyPressEvent(QKeyEvent *e)
|
||||
if (camelCaseNavigationEnabled())
|
||||
CamelCaseCursor::left(&c, this, QTextCursor::MoveAnchor);
|
||||
else
|
||||
c.movePosition(QTextCursor::StartOfWord, QTextCursor::MoveAnchor);
|
||||
c.movePosition(QTextCursor::PreviousWord, QTextCursor::MoveAnchor);
|
||||
int targetpos = c.position();
|
||||
forever {
|
||||
d->handleBackspaceKey();
|
||||
|
||||
Reference in New Issue
Block a user