summaryrefslogtreecommitdiffstats
path: root/Swift
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2011-05-22 12:45:01 (GMT)
committerKevin Smith <git@kismith.co.uk>2011-05-22 12:45:01 (GMT)
commit386aac47c485d1a9066a1aa065fe584c60ac850c (patch)
tree6867a77bce1fe2ca5c3d30d9c81613b953068a22 /Swift
parent106a3b296e37178ed6ee227120771116732ef6eb (diff)
downloadswift-386aac47c485d1a9066a1aa065fe584c60ac850c.zip
swift-386aac47c485d1a9066a1aa065fe584c60ac850c.tar.bz2
Don't pass cursor keys through to chat log.
Resolves: #872
Diffstat (limited to 'Swift')
-rw-r--r--Swift/QtUI/QtChatWindow.cpp2
1 files changed, 2 insertions, 0 deletions
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);
}