Docsv3.20.2
Back to API Reference
Class

TextShortcut

sealed

A keyboard shortcut of a TextFormattingBehavior: a key, combined with the platform primary modifier (Ctrl on Windows and Linux, Cmd on macOS) and optionally Shift, that runs a TextCommand. A shortcut whose command does not apply leaves the key to the rest of the field's key handling.

public NativeKeyCode Key{ get; set }

Key combined with the platform primary modifier; None leaves the shortcut unbound.

public bool Shift{ get; set }

Whether the shortcut additionally requires Shift.

public TextCommand Command{ get; set }

Command the shortcut runs while it applies; unassigned runs nothing.