diff --git a/applet.cpp b/applet.cpp index a626c10be..03a7b02a1 100644 --- a/applet.cpp +++ b/applet.cpp @@ -944,8 +944,11 @@ void Applet::setGlobalShortcut(const KShortcut &shortcut) d->activationAction->setObjectName(QString("Activate %1 Widget").arg(name())); // NO I18N connect(d->activationAction, SIGNAL(triggered()), this, SIGNAL(activate())); connect(this, SIGNAL(activate()), this, SLOT(setFocus())); - //TODO: when local shortcuts are possible, we'll need to always be associated with the right - //widget + + QList widgets = d->actions.associatedWidgets(); + foreach (QWidget *w, widgets) { + w->addAction(d->activationAction); + } } d->activationAction->setGlobalShortcut(shortcut);