From 386aac47c485d1a9066a1aa065fe584c60ac850c Mon Sep 17 00:00:00 2001 From: Kevin Smith Date: Sun, 22 May 2011 13:45:01 +0100 Subject: Don't pass cursor keys through to chat log. Resolves: #872 diff --git a/Swift/QtUI/QtChatWindow.cpp b/Swift/QtUI/QtChatWindow.cpp index b2644b2..5fb2939 100644 --- a/Swift/QtUI/QtChatWindow.cpp +++ b/Swift/QtUI/QtChatWindow.cpp @@ -138,6 +138,8 @@ void QtChatWindow::handleKeyPressEvent(QKeyEvent* event) { beginCorrection(); } else if (key == Qt::Key_Down && isCorrection_ && input_->textCursor().atBlockEnd()) { cancelCorrection(); + } else if (key == Qt::Key_Down || key == Qt::Key_Up) { + /* Drop */ } else { messageLog_->handleKeyPressEvent(event); } -- cgit v0.10.2-6-g49f6