Shortcuts

Undocumented in source.

Constructors

this
this(string fileName)

Load shortcuts from rpdl file by fileName; fileName is absolute.

Members

Functions

attach
void attach(string shortcut, void delegate() action)

Attach action to particular shortcut

attachByPath
void attachByPath(string path, void delegate() action)

Attach action to particular shortcut placed by path (in rpdl file)

getShourtcutString
string getShourtcutString(string path)
Undocumented in source. Be warned that the author may not have intended to support it.
merge
void merge(Shortcuts shortcuts)
onKeyReleased
void onKeyReleased(KeyCode key)

Handle on key released and invoke action if shortcut is pressed.

Static functions

createFromFile
createFromFile(string fileName)

Load shortcuts from rpdl file relative to resources/ui/shortcuts.

Structs

ShortcutAction
struct ShortcutAction

Action to be invoked when shortcut is pressed.

Meta