<div dir="ltr"><div>Hi all,</div><div>I'm trying to use the global shortcut that the user can configure from the "Shortcut configuration page" of a plasma applet, to trigger a KAction and let the plasmoid do something.</div>

<div><br></div><div>I've done this</div><div><br></div><div>    //Setup the action</div><div>    m_toggleAction = new KAction("ToggleAction", this);</div><div>    //Add action to the plasmoid action collection</div>

<div>    addAction("ToggleAction", m_toggleAction);</div><div>    m_toggleAction->setGlobalShortcut(globalShortcut());</div><div>    connect(m_toggleAction, SIGNAL(triggered(bool)), this, SLOT(toggle()));</div>

<div><br></div><div>but nothing happens when I trigger the shortcut. Do anyone know what I'm missing?</div><div>Is there any plasmoid that is using the global shortcut feature?</div><div><br></div><div>Thanks</div></div>