---
title: s.ui.shortcut
description: "## Syntax **s.ui.shortcut** ## Purpose The s.ui.shortcut annotation is used to tag a span element as being a shortcut key that can be used instead of a menu selection. ## Example The following is an example of a time when…"
url: "https://www.stilo.com/docs/migrate/task/s-ui-shortcut/"
updated: "2023-12-11"
category: Annotations / Task
tags:
  - Annotations
---

# s.ui.shortcut

## Syntax

**s.ui.shortcut**

## Purpose

The s.ui.shortcut annotation is used to tag a span element as being a shortcut key that can be used instead of a menu selection.

## Example

The following is an example of a time when you might want to use the annotation

![](https://www.stilo.com/wp-content/uploads/2023/12/stilo-dita-xml-annotation-s.ui_.shortcut0-300x167.png)

 

The following is an example of a rule that will apply the annotation

![](https://www.stilo.com/wp-content/uploads/2023/12/stilo-dita-xml-annotation-s.ui_.shortcut1.png)

The following is the DITA XML output for the rule:

<step>

<cmd>Select <uicontrol><shortcut>C</shortcut></uicontrol><uicontrol>REATE NEW FILE</uicontrol>.</cmd>

</step>

 
