shortcutOf

The function generates a Shortcut object out of a String.

Parameters

key

the String that should be taken as Shortcut.key property


The function generates a Shortcut object out of a KeyboardEvent.

Parameters

event

the event to convert into a Shortcut