GetBindingAction

From Warcraft Wiki
Jump to navigation Jump to search
Flavors
Links
Info
Added in 1.0.0 / 1.13.2

Returns the binding name for a key (combination).

action = GetBindingAction(binding[, checkOverride])

Arguments

binding
string - The name of the key (eg. "BUTTON1", "1", "CTRL-G")
checkOverride
boolean? - if true, override bindings will be checked, otherwise, only default (bindings.xml/SetBinding) bindings are consulted.

Returns

action
string - action command performed by the binding. If no action is bound to the key, an empty string is returned.

See also