Skip to content
AtlasOSFramework API
Browse the docs

AtlasShortcutLabel

A keyboard shortcut drawn as keycaps, one per key, in the platform's own spelling.

Since 1.4.0

A keyboard shortcut drawn as keycaps, one per key, in the platform's own spelling. A shortcut of several steps ("Ctrl+K, Ctrl+C") shows the steps one after the other with a comma between them. With no sequence it has no size and is hidden. It follows right-to-left layouts, and screen readers get the sequence as text.

Example

AtlasShortcutLabel { sequence: "Ctrl+Shift+S" }
AtlasShortcutLabel { sequence: saveAction.shortcut }

Properties

Name Type Default Description
sequence var "" The shortcut: a string ("Ctrl+Shift+S") or a StandardKey number (StandardKey.Save), such as an AtlasAction's shortcut. See AtlasShortcuts.