Do not forward the button release event when Shift is also pressed.

BUG: 299437
FIXED-IN: 4.8.4
This commit is contained in:
Jekyll Wu
2012-05-06 01:28:03 +08:00
parent d87c4c9895
commit 2def15a2db

View File

@@ -2167,8 +2167,9 @@ void TerminalDisplay::mouseReleaseEvent(QMouseEvent* ev)
}
if (!_mouseMarks &&
((ev->button() == Qt::RightButton && !(ev->modifiers() & Qt::ShiftModifier))
|| ev->button() == Qt::MidButton)) {
(ev->button() == Qt::RightButton || ev->button() == Qt::MidButton ) &&
!(ev->modifiers() & Qt::ShiftModifier) ) {
emit mouseSignal(3,
charColumn + 1,
charLine + 1 + _scrollBar->value() - _scrollBar->maximum() ,