BUG: 150759

don't act on left/right cursor in a special way during selection (Shift pressed)

svn path=/trunk/KDE/kdepim/; revision=1014188
wilder-work
Martin Koller 17 years ago
parent efb4b96777
commit 75ea43339e
  1. 6
      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 );

Loading…
Cancel
Save