This is an automatically generated e-mail. To reply, visit: http://git.reviewboard.kde.org/r/104400/

This review has been submitted with commit b0274fdc66e5bba1e1146c2f9de2f2152f44bcbb by Martin Gräßlin to branch master.

- Commit


On March 25th, 2012, 8:03 a.m., Martin Gräßlin wrote:

Review request for kwin.
By Martin Gräßlin.

Updated March 25, 2012, 8:03 a.m.

Description

Scripts can register callbacks for global shortcuts.

Needs to be made available to scripted effects, too.

Testing

var callback = function() {
  print("Global Shortcut triggered in script");
};

registerShortcut("Test", "This is the title to test", "Ctrl+Alt+7", callback);

Diffs

  • kwin/scripting/scriptedeffect.h (b0080ba)
  • kwin/scripting/scriptedeffect.cpp (cc0cf73)
  • kwin/scripting/scripting.h (67184b4)
  • kwin/scripting/scripting.cpp (b5b1a2e)
  • kwin/scripting/scriptingutils.h (PRE-CREATION)

View Diff