diff --git a/src/core/kglobalaccelglobalshortcutbackend.cpp b/src/core/kglobalaccelglobalshortcutbackend.cpp index d0733ee22d..d7809a263d 100644 --- a/src/core/kglobalaccelglobalshortcutbackend.cpp +++ b/src/core/kglobalaccelglobalshortcutbackend.cpp @@ -85,6 +85,11 @@ bool KGlobalAccelShortcutBackend::DoRegister() { this, &KGlobalAccelShortcutBackend::OnShortcutPressed, Qt::UniqueConnection); + QObject::connect(component_, + &OrgKdeKglobalaccelComponentInterface::globalShortcutRepeated, + this, &KGlobalAccelShortcutBackend::OnShortcutPressed, + Qt::UniqueConnection); + return complete; #else // HAVE_DBUS qLog(Warning) << "dbus not available"; @@ -104,6 +109,9 @@ void KGlobalAccelShortcutBackend::DoUnregister() { QObject::disconnect( component_, &OrgKdeKglobalaccelComponentInterface::globalShortcutPressed, this, &KGlobalAccelShortcutBackend::OnShortcutPressed); + QObject::disconnect( + component_, &OrgKdeKglobalaccelComponentInterface::globalShortcutRepeated, + this, &KGlobalAccelShortcutBackend::OnShortcutPressed); #endif // HAVE_DBUS } diff --git a/src/dbus/org.kde.kglobalaccel.Component.xml b/src/dbus/org.kde.kglobalaccel.Component.xml index aca7ef6ea8..8354bd40c2 100644 --- a/src/dbus/org.kde.kglobalaccel.Component.xml +++ b/src/dbus/org.kde.kglobalaccel.Component.xml @@ -9,6 +9,11 @@ + + + + +