Changeset View
Changeset View
Standalone View
Standalone View
plugins/contextbrowser/browsemanager.cpp
Show First 20 Lines • Show All 222 Lines • ▼ Show 20 Line(s) | 182 | { | |||
---|---|---|---|---|---|
223 | } | 223 | } | ||
224 | 224 | | |||
225 | if (!view) { | 225 | if (!view) { | ||
226 | return false; | 226 | return false; | ||
227 | } | 227 | } | ||
228 | 228 | | |||
229 | auto* focusEvent = dynamic_cast<QFocusEvent*>(event); | 229 | auto* focusEvent = dynamic_cast<QFocusEvent*>(event); | ||
230 | //Eventually stop key-browsing | 230 | //Eventually stop key-browsing | ||
231 | if ((keyEvent && m_browsingByKey && keyEvent->key() == m_browsingByKey && keyEvent->type() == QEvent::KeyRelease) | 231 | if((keyEvent && m_browsingByKey && ( keyEvent->key() == m_browsingByKey || keyEvent->modifiers() == Qt::ControlModifier ) && keyEvent->type() == QEvent::KeyRelease) | ||
232 | || (focusEvent && focusEvent->lostFocus()) || event->type() == QEvent::WindowDeactivate) { | 232 | || (focusEvent && focusEvent->lostFocus()) || event->type() == QEvent::WindowDeactivate) { | ||
233 | m_browsingByKey = 0; | 233 | m_browsingByKey = 0; | ||
234 | emit stopDelayedBrowsing(); | 234 | emit stopDelayedBrowsing(); | ||
235 | } | 235 | } | ||
236 | 236 | | |||
237 | auto* mouseEvent = dynamic_cast<QMouseEvent*>(event); | 237 | auto* mouseEvent = dynamic_cast<QMouseEvent*>(event); | ||
238 | 238 | | |||
239 | if (mouseEvent) { | 239 | if (mouseEvent) { | ||
▲ Show 20 Lines • Show All 133 Lines • Show Last 20 Lines |