The keystroke of interest.
The parsed components of the keystroke.
The keystroke should be of the form:
[<modifier 1> [<modifier 2> [<modifier N> ]]]<primary key>
The supported modifiers are: Accel
, Alt
, Cmd
, Ctrl
, and
Shift
. The Accel
modifier is translated to Cmd
on Mac and
Ctrl
on all other platforms.
The parsing is tolerant and will not throw exceptions. Notably:
Generated using TypeDoc
Parse a keystroke into its constituent components.