Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/core/kglobalaccelglobalshortcutbackend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -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
}

Expand Down
5 changes: 5 additions & 0 deletions src/dbus/org.kde.kglobalaccel.Component.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
<arg name="actionUnique" type="s" direction="out"/>
<arg name="timestamp" type="x" direction="out"/>
</signal>
<signal name="globalShortcutRepeated">
<arg name="componentUnique" type="s" direction="out"/>
<arg name="actionUnique" type="s" direction="out"/>
<arg name="timestamp" type="x" direction="out"/>
</signal>
<method name="cleanUp">
<arg type="b" direction="out"/>
</method>
Expand Down