Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
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");