WoW API: GetBindingAction

From AddOn Studio
Revision as of 04:45, 15 August 2023 by Move page script (talk | contribs) (Move page script moved page API GetBindingAction to API GetBindingAction without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

WoW API < GetBindingAction

Returns the name of the action performed by the specified binding.

action = GetBindingAction("binding"[, checkOverride]);

Arguments

binding
String - The name of the key (eg. "BUTTON1", "1", "CTRL-G")
checkOverride
Optional 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.