WoW API: GetBindingByKey

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

WoW API < GetBindingByKey

local binding = GetBindingByKey(key)

This returns whatever is bound to "key", be it a spell or an action or a click. If there is no binding it returns nil, unlike API GetBindingAction which returns a blank string.

Parameters

Arguments

  • key (string) - WoW 'key name' of the key to get the binding for, such as an upper case letter like "K"

Returns

  • binding (string) - the full binding command string, which is the name of the action that will be taken