3.3. events.shortcut

event

This event registers a new keyboad shortcut. The shortcut isn't bound to any key until the users does so in the preference panel. The event is triggered whenever the shortcut is triggered. This event can only be registered once per value of shortcut.

3.3.1. events.shortcut.callback

function( 
	event : string, 
	shortcut : string
)

event
string

The name of the event that triggered the callback.

shortcut
string

The tooltip string that was given at registration time.

3.3.2. events.shortcut.extra registration parameters

tooltip
string

The string that will be displayed on the shortcut preference panel describing the shortcut.