Skip to main content

<Shortcut>

Category: Control tag

The Shortcut tag to define a shortcut that annotators can use to add a predefined object, such as a specific label value, with a hotkey or keyboard shortcut.

Use with the following data types:

  • Audio
  • Image
  • HTML
  • Paragraphs
  • Text
  • Time series
  • Video

Attributes​

AttributeTypeRequiredDefaultDescription
valuestringyes—The value of the shortcut
aliasstringno—Shortcut alias
hotkeystringno—Hotkey
backgroundstringno#333333Background color in hexadecimal

Examples​

Example 1​

Basic labeling configuration to add a shortcut that places the text SILENCE in a given Text Area while doing transcription.

Note: The default background color for the Shortcut tag is grey color.

You can change the background color using text or hexadecimal format in the background parameter.

<View>
<TextArea name="txt-1">
<Shortcut alias="Silence" value="SILENCE" hotkey="ctrl+1" background="#3333333" />
</TextArea>
</View>