API:GetBindingKey

__NOTOC__
Get the hotkeys to execute a command.
GetBindingKey ("command")
== Parameters ==
=== Arguments ===
:;command
::String - Command Name of the action to execute when hotkey is pressed, such as MOVEFORWARD or ASSISTTARGET. An unrecognized Command Name will not get bound.
=== Returns ===
:;hotkey1
::String - Key Name of the key to bind to the command.
:;hotkey2
::String - Key Name of the key to bind to the command.
== Example ==
-- Outputs the keys bound to REPLY,
local KEY = "REPLY"
local hotkey1, hotkey2 = GetBindingKey(KEY)
local hotkeys
if hotkey1 then
	if hotkey2 then
		hotkeys = hotkey1 .. ", " .. hotkey2
	else
		hotkeys = hotkey1
	end
else
	hotkeys = "nothing"
end
ChatFrame1:AddMessage(KEY .. " is triggered by " .. hotkeys);
== Notes ==
* The key bindings are not saved to "%UserProfie%\My Documents\Runes of Magic\bindings.txt" until function SaveBindingKey is executed
* SetBindingKey is run upon hitting the OK button on the KeyDefineFrame
* Duplicate hotkey name bindings are eliminated by this function.
== Related Functions ==
* DefaultBindingKey
* GetBindings
* GetNumBindings
* SetBindingKey
* SaveBindingKey
* UpdateBindingsListView
* DefaultBindingKey
Category:Functions