41 if (event->isAutoRepeat()) {
44 if (event->type() == QEvent::KeyPress) {
45 const bool wasEmpty = m_pressedKeys.isEmpty();
46 m_pressedKeys.insert(event->nativeScanCode());
47 if (wasEmpty && m_pressedKeys.size() == 1 &&
48#
if KWIN_BUILD_SCREENLOCKER
49 !kwinApp()->screenLockerWatcher()->isLocked() &&
51 m_pressedButtons == Qt::NoButton && m_cachedMods == Qt::NoModifier) {
54 m_modifier = Qt::NoModifier;
56 }
else if (!m_pressedKeys.isEmpty()) {
57 m_pressedKeys.remove(event->nativeScanCode());
59 if (m_modifier != Qt::NoModifier) {
61 if (list.size() >= 4) {
63 auto call = QDBusMessage::createMethodCall(list.at(0), list.at(1), list.at(2), list.at(3));
65 for (
int i = 4; i < list.size(); ++i) {
68 call.setArguments(args);
69 QDBusConnection::sessionBus().asyncCall(call);
74 m_modifier = Qt::NoModifier;
76 m_modifier = Qt::NoModifier;
78 m_cachedMods =
event->modifiersRelevantForGlobalShortcuts();