summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJekyll Wu <adaptee@gmail.com>2012-05-05 17:39:32 (GMT)
committerJekyll Wu <adaptee@gmail.com>2012-05-05 17:39:32 (GMT)
commitefae7d95366a240b953425a1ee6dea15de45332c (patch)
treed7491b97cfc93cf7b985b1fdda44a22fd0bc6910
parent3ffd5f896cf9fd9cbe09d3203ec6020f80e3ff23 (diff)
Do not forward the button release event when Shift is also pressed.
BUG: 299437 FIXED-IN: 4.8.4
-rw-r--r--src/TerminalDisplay.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/TerminalDisplay.cpp b/src/TerminalDisplay.cpp
index ac44da9..1e85f06 100644
--- a/src/TerminalDisplay.cpp
+++ b/src/TerminalDisplay.cpp
@@ -2236,10 +2236,10 @@ void TerminalDisplay::mouseReleaseEvent(QMouseEvent* ev)
}
- if ( !_mouseMarks &&
- ((ev->button() == Qt::RightButton && !(ev->modifiers() & Qt::ShiftModifier))
- || ev->button() == Qt::MidButton) )
- {
+ if (!_mouseMarks &&
+ (ev->button() == Qt::RightButton || ev->button() == Qt::MidButton ) &&
+ !(ev->modifiers() & Qt::ShiftModifier) ) {
+
emit mouseSignal( 3,
charColumn + 1,
charLine + 1 +_scrollBar->value() -_scrollBar->maximum() ,