shortcutOf

fun shortcutOf(key: String): Shortcut

The function generates a Shortcut object out of a String.

Parameters

key

the String that should be taken as Shortcut.key property

fun shortcutOf(event: KeyboardEvent): Shortcut

The function generates a Shortcut object out of a KeyboardEvent.

Parameters

event

the event to convert into a Shortcut