Widget/API/RegisterForClicks

Register any keys for capturing event on frames, buttons etc.

this function

should be placed in .xml file like

keyname - name of the button, like "LeftButton", "RightButton" or "MiddleButton" mouse bottons

function RegisterForClicks can take more the one keyname at once

keep in mind, to check pressed key in .xml you should check uppercase names LBUTTON, RBUTTON, MBUTTON or XBUTTON

or

or

key - reserved name, will contain the name of event

Related Functions

 * IsShiftKeyDown
 * IsAltKeyDown
 * IsCtrlKeyDown