addShortcut

public function addShortcut(pa:String, desc:String, cmd_func:String/Function, sc:Object):Boolean
Adds a keyboard shortcut for some command or function.

Params

Name Type Description
pa String Shortcut pattern. Like for example: ctrl+alt+o.
desc String Text description for the command.
cmd_func String/Function Command name string or function to execute when the key is pressed.
sc Object Optional scope to execute the function in.

Returns

Boolean true/false state if the shortcut was added or not.