Shortcut.this

Parsing shortcut from string - all keys will split by '+' symbol.

struct Shortcut
this
(
in string shortcut
)

Examples

Shortcut("Ctrl+C");  // ctrl = true; key = KeyCode.C;
Shortcut("Ctrl+Shift+S");  // ctrl = true; shift = true; key = KeyCode.C;

Meta