Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
Advertisement

Sets an override binding that acts like a mouse click on a button.


Arguments
(table owner, boolean isPriority, string key, string buttonName [, string mouseClick])
owner
(table) The frame responsible for setting the override.
isPriority
(boolean) Indicates that this is a priority override binding.
key
(string) The key to bind to the button (e.g. "CTRL-2").
buttonName
(string) The name of the button to which the key will be bound. To remove a single click binding, use SetOverrideBinding.
mouseClick
(string) The mouse button sent to the button's OnClick handler (e.g. "LeftButton").

Example
-- Set CTRL-X key to act like a right mouse click on the specified button
local button = SomeButton;
SetOverrideBindingClick(button, false, "CTRL-X", button:GetName(), "RightButton");

Advertisement