Shortcut.readKey

Fill Shortcut fields from string.

struct Shortcut
void
readKey
(
in string key
)

Examples

readKey("Ctrl");  // will assign `true` to `ctrl`
readKey("A");  // will assign `input.KeyCode.A` to `key`

Meta