API GetBindingByKey

From Wowpedia
Jump to: navigation, search

Returns the binding action performed when the specified key combination is triggered.

bindingAction = GetBindingByKey("key")

Arguments

key 
String - binding key to query, e.g. "G", "ALT-G", "ALT-CTRL-SHIFT-F1".

Returns

bindingAction 
String - binding action that will be performed, e.g. "TOGGLEAUTORUN", "CLICK Purrseus:k1", or nil if no action will be performed.

Details

  • This function takes into account override bindings by default.
  • This function can discard modifiers from the key argument until a binding matches; thus, querying for "ALT-CTRL-SHIFT-G" can return the action performed due to the simple "G" binding.

See also