Parse a keystroke into its constituent components.
The parsed components of the keystroke.
The keystroke should be of the form: [<modifier 1> [<modifier 2> [<modifier N> ]]]<primary key>
[<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.
Accel
Alt
Cmd
Ctrl
Shift
The parsing is tolerant and will not throw exceptions. Notably:
The keystroke of interest.
Generated using TypeDoc
Parse a keystroke into its constituent components.
Returns
The parsed components of the keystroke.
Notes
The keystroke should be of the form:
[<modifier 1> [<modifier 2> [<modifier N> ]]]<primary key>The supported modifiers are:
Accel,Alt,Cmd,Ctrl, andShift. TheAccelmodifier is translated toCmdon Mac andCtrlon all other platforms.The parsing is tolerant and will not throw exceptions. Notably: