diff --git a/recipientseditor.cpp b/recipientseditor.cpp index 850793f91..f99836ec7 100644 --- a/recipientseditor.cpp +++ b/recipientseditor.cpp @@ -134,9 +134,11 @@ void RecipientLineEdit::keyPressEvent( QKeyEvent *ev ) if ( ev->key() == Qt::Key_Backspace && text().isEmpty() ) { ev->accept(); emit deleteMe(); - } else if ( ev->key() == Qt::Key_Left && cursorPosition() == 0 ) { + } else if ( ev->key() == Qt::Key_Left && cursorPosition() == 0 && + !ev->modifiers().testFlag( Qt::ShiftModifier ) ) { // Shift would be pressed during selection emit leftPressed(); - } else if ( ev->key() == Qt::Key_Right && cursorPosition() == (int)text().length() ) { + } else if ( ev->key() == Qt::Key_Right && cursorPosition() == (int)text().length() && + !ev->modifiers().testFlag( Qt::ShiftModifier ) ) { // Shift would be pressed during selection emit rightPressed(); } else { KMLineEdit::keyPressEvent( ev );