System BindKey

;Usage
System.BindKey(category, action, keyCode, alt, slot) = success
;Examples:
<nowiki>
-- bind InventoryMenu to i key (keyCode 73)
System.BindKey("Interface", "InventoryMenu", 73, false, 1)
System.ApplyKeyBindings()
-- bind InventoryMenu to f11 key (keyCode 122)
System.BindKey("Interface", "InventoryMenu", 122, false, 1)
System.ApplyKeyBindings()
-- unbind InventoryMenu 
System.BindKey("Interface", "InventoryMenu", 0, false, 1)
System.ApplyKeyBindings()
</nowiki>
;See Also
* System.ApplyKeyBindings
* System.BindDefaultKey
* System.GetKeyBindings
Category:Addon_API