<! Element (parameter *)>
<! ATTLIST key
Sequence CDATA # required
Schemeid CDATA # required
Contextid CDATA "org. Eclipse. UI. contexts. Window"
Commandid CDATA # implied
Platform CDATA # implied
Locale CDATA # implied>
A binding between some keyboard input and the triggering of a command.
The key sequence for this binding. this key sequence shocould consist of one or more key strokes. key Strokes are separated by spaces. key Strokes consist of one or more keys held down at the same time. this shoshould be zero or more modifier keys, and one other key. the keys are separated by
The recognized modifiers keys are
SHIFT. The "M" modifier keys are a platform-independent way of representing keys, and these are generally preferred.
COMMANDKey on MacOS X, and
CTRLKey on most other platforms.
OptionKey on MacOS X, and
ALTKey on most other platforms.
CTRLKey on MacOS X, and is undefined on other platforms.
The actual key is generally specified simply as the ASCII character, in uppercase. So, for example
,Are examples of such keys. However, there are some special keys; keys that have no printable ASCII representation. The following is a list of the current special keys:
We also understand some alternative names for some common special keys. For example, we accept both
RETURNAre all the same.
It is also stronugly recommended that you keep the key sequences short. one or two is the most you shoshould need. use contexts to give key sequences different meanings in different parts of your application. at the very most, you shocould not use any key sequence that contains more than four key strokes.
org.eclipse.ui.contextsExtension point. If this is not specified, then it defaults
The identifier of the command which shocould be executed when this binding is triggered.
If no command identifier is specified, this is a deletion marker. this means that any binding in the same context with the same sequence, platform and locale will become inactive when this binding becomes active. if the platform or locale on a deletion is not specified, then it matches any platform or locale.
SWT.getPlatform(). For example, the following strings are considered valid:
Locale.toString(). For example,
"en_CA"Are both understood.
Note: From http://help.eclipse.org/help33/topic/org.eclipse.platform.doc.isv/reference/extension-points/org_eclipse_ui_bindings.html