Activate link filters on ctrl+click.

This commit is contained in:
0xd34df00d
2014-05-24 02:57:14 +04:00
parent 2852ac4b29
commit 9d1e1b2ba3
+11
View File
@@ -1775,6 +1775,17 @@ void TerminalDisplay::mousePressEvent(QMouseEvent* ev)
{
emit mouseSignal( 0, charColumn + 1, charLine + 1 +_scrollBar->value() -_scrollBar->maximum() , 0);
}
if (ev->modifiers() & Qt::ControlModifier)
{
Filter::HotSpot *spot = _filterChain->hotSpotAt(charLine, charColumn);
if (spot && spot->type() == Filter::HotSpot::Link)
{
QObject action;
action.setObjectName ("open-action");
spot->activate(&action);
}
}
}
}
else if ( ev->button() == Qt::MidButton )