summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin T. H. Sandsmark <martin.sandsmark@kde.org>2016-09-04 09:58:28 (GMT)
committerMartin T. H. Sandsmark <martin.sandsmark@kde.org>2016-09-04 18:43:00 (GMT)
commit54ecd560b8d76121256a0bd653999fb8d4acb363 (patch)
treecd4348012b91bf9b4eae2cddcab0c8ba42a1502c
parent624e6ecdf7f062d8823d7bdacb66c802a62112f3 (diff)
Fix scrolling down if user presses something which is not just a modifier
If the user presses e. g. arrow up, we should actually scroll down. What I intended to fix was only the case where the user only pressed a modifier. And hardcoding a list of keys and behaviors is bad and bug prone, so I think this is the best solution. REVIEW: 128827
-rw-r--r--src/SessionController.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SessionController.cpp b/src/SessionController.cpp
index a1db8bc..929a6d2 100644
--- a/src/SessionController.cpp
+++ b/src/SessionController.cpp
@@ -226,7 +226,7 @@ void SessionController::trackOutput(QKeyEvent* event)
// Only jump to the bottom if the user actually typed something in,
// not if the user e. g. just pressed a modifier.
- if (event->text().isEmpty()) {
+ if (event->text().isEmpty() && event->modifiers()) {
return;
}