Changeset View
Changeset View
Standalone View
Standalone View
src/TerminalDisplay.cpp
Show First 20 Lines • Show All 2303 Lines • ▼ Show 20 Line(s) | 2303 | if (qApp->autoSipEnabled()) { | |||
---|---|---|---|---|---|
2304 | auto behavior = QStyle::RequestSoftwareInputPanel( | 2304 | auto behavior = QStyle::RequestSoftwareInputPanel( | ||
2305 | style()->styleHint(QStyle::SH_RequestSoftwareInputPanel)); | 2305 | style()->styleHint(QStyle::SH_RequestSoftwareInputPanel)); | ||
2306 | if (hasFocus() || behavior == QStyle::RSIP_OnMouseClick) { | 2306 | if (hasFocus() || behavior == QStyle::RSIP_OnMouseClick) { | ||
2307 | QEvent event(QEvent::RequestSoftwareInputPanel); | 2307 | QEvent event(QEvent::RequestSoftwareInputPanel); | ||
2308 | QApplication::sendEvent(this, &event); | 2308 | QApplication::sendEvent(this, &event); | ||
2309 | } | 2309 | } | ||
2310 | } | 2310 | } | ||
2311 | 2311 | | |||
2312 | if (!ev->modifiers()) { | ||||
2312 | _lineSelectionMode = false; | 2313 | _lineSelectionMode = false; | ||
2313 | _wordSelectionMode = false; | 2314 | _wordSelectionMode = false; | ||
2315 | } | ||||
2314 | 2316 | | |||
2315 | // The user clicked inside selected text | 2317 | // The user clicked inside selected text | ||
2316 | bool selected = _screenWindow->isSelected(pos.x(), pos.y()); | 2318 | bool selected = _screenWindow->isSelected(pos.x(), pos.y()); | ||
2317 | 2319 | | |||
2318 | // Drag only when the Control key is held | 2320 | // Drag only when the Control key is held | ||
2319 | if ((!_ctrlRequiredForDrag || ((ev->modifiers() & Qt::ControlModifier) != 0u)) && selected) { | 2321 | if ((!_ctrlRequiredForDrag || ((ev->modifiers() & Qt::ControlModifier) != 0u)) && selected) { | ||
2320 | _dragInfo.state = diPending; | 2322 | _dragInfo.state = diPending; | ||
2321 | _dragInfo.start = ev->pos(); | 2323 | _dragInfo.start = ev->pos(); | ||
▲ Show 20 Lines • Show All 1662 Lines • Show Last 20 Lines |