Commit 9d418664 by JanKusanagi

Don't handle UP is Shift is pressed

1 parent 311ff07a
Showing with 2 additions and 3 deletions
......@@ -330,8 +330,6 @@ void Composer::focusInEvent(QFocusEvent *event)
void Composer::keyPressEvent(QKeyEvent *event)
{
//qDebug() << "Composer::keyPressEvent()";
// Allow cancelling/accepting the autocompletion popup
if (this->nickCompleter->popup()->isVisible())
{
......@@ -361,7 +359,8 @@ void Composer::keyPressEvent(QKeyEvent *event)
this->cancelPost();
}
}
else if (event->key() == Qt::Key_Up)
else if (event->key() == Qt::Key_Up
&& event->modifiers() != Qt::ShiftModifier)
{
QTextCursor currentCursor = this->textCursor();
if (currentCursor.movePosition(QTextCursor::Up)) // true=cursor is able to go up
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!