To denote a specific key, you will need to use the
<keycap>
and </keycap>
tags. Brackets are automatically added around the keycap, so do not add
them in your XML code. For example:
To make your selection, press the <keycap>Enter</keycap> key.
The output:
To make your selection, press the Enter key.
Often using a mouse is tedious for common tasks. Therefore, programmers often build in keyboard-shortcuts to simplify their program. These should be described using the shortcut tag as a wrapper for the keyboard tags. The shortcut tag must be wrapped inside the menuchoice tag. For example:
Go to the menu bar and choose:
<menuchoice>
<shortcut>
<keycombo><keycap>Ctrl</keycap><keycap>s</keycap></keycombo>
</shortcut>
<guimenu><accel>F</accel>ile</guimenu>
<guimenuitem><accel>S</accel>ave</guimenuitem>
</menuchoice>.
The output:
Go to the menu bar and choose: File → Save (Ctrl-s).