Returns information about a key binding


See also Keybind functions.

Signature:

commandName, binding1, binding2 = GetBinding(index)

Arguments:

  • index - Index in the key bindings list (between 1 and GetNumBindings()) (number)

Returns:

  • commandName - Name of the binding command (string)
  • binding1 - First key binding for the command, or nil if no key is bound (string, binding)
  • binding2 - Second key binding for the command, or nil if no key is bound (string, binding)