|
|
|
|
@ -2508,6 +2508,7 @@ void TerminalDisplay::mouseReleaseEvent(QMouseEvent* ev) |
|
|
|
|
2); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// TODO: Move this code to hot spots too.
|
|
|
|
|
if (!_screenWindow->screen()->hasSelection() && (_openLinksByDirectClick || ((ev->modifiers() & Qt::ControlModifier) != 0u))) { |
|
|
|
|
auto spot = _filterChain->hotSpotAt(charLine, charColumn); |
|
|
|
|
if ((spot != nullptr) && (spot->type() == HotSpot::Link || spot->type() == HotSpot::EMailAddress || spot->type() == HotSpot::EscapedUrl)) { |
|
|
|
|
@ -3488,6 +3489,7 @@ void TerminalDisplay::scrollScreenWindow(enum ScreenWindow::RelativeScrollMode m |
|
|
|
|
|
|
|
|
|
void TerminalDisplay::keyPressEvent(QKeyEvent* event) |
|
|
|
|
{ |
|
|
|
|
// TODO: Move this code to HotSpot too.
|
|
|
|
|
if ((_urlHintsModifiers != 0u) && event->modifiers() == _urlHintsModifiers) { |
|
|
|
|
QList<QSharedPointer<HotSpot>> hotspots = _filterChain->filterBy(HotSpot::Link); |
|
|
|
|
int nHotSpots = hotspots.count(); |
|
|
|
|
|