Normalize a keystroke into a canonical representation.
The normalized representation of the keystroke.
This normalizes the keystroke by removing duplicate modifiers and extra primary keys, and assembling the parts in a canonical order.
The Cmd modifier is ignored on non-Mac platforms.
Cmd
The keystroke of interest.
Generated using TypeDoc
Normalize a keystroke into a canonical representation.
Returns
The normalized representation of the keystroke.
Notes
This normalizes the keystroke by removing duplicate modifiers and extra primary keys, and assembling the parts in a canonical order.
The
Cmdmodifier is ignored on non-Mac platforms.