keystroke

Contains the definition of a key combination that can be used by application user interfaces to insert/invoke the content/functionality represented by this element's parent element, which may be any of the following:

macro

Specifies the keystroke combination that will execute the macro.

story-element

Specifies the CUE semantic shortcut keystroke to be associated with the parent story-element. This effectively defines a semantic shortcut for converting to this story element. In other words, adding the keystroke 'h' to the definition of a headline story element will mean that CUE users can (for example) convert a paragraph story element to a headline story element by pressing Shift Shift t h.

annotation

Specifies the keystroke combination that will apply the annotation to a selected text range.

element-wrap or element-unwrap

Specifies the keystroke combination that will trigger the specified wrap/unwrap operation.

When used in macro, annotation, element-wrap and element-unwrap elements, the syntax for specifying key combinations is:

modifier* key

where:

modifier

is one of shift, control, ctrl, meta, alt or altGraph and indicates one of the keyboard modifier key (note that ctrl is the Cmd key on a Mac).

key

Is a key identifier. These are always upper case. For the standard alphanumeric keys, the character on the key is used. For a complete list of all key identifiers, see http://download.oracle.com/javase/6/docs/api/java/awt/event/KeyEvent.html. Use the key names listed here, without the "VK_" prefix.

Here are some example keystroke definitions suitable for macros:

alt 8
shift alt PAGE_DOWN

Make sure you avoid keystroke combinations that are already in use.

When used in story-element elements, only a single alphabetic character in the range A-Z (or a-z) may be specified. Anything else will be ignored. The semantic shortcuts are case-insensitive, so it does not matter whether you specify H or h.

Syntax
<keystroke>
  text
</keystroke>