||This article includes a list of references, but its sources remain unclear because it has insufficient inline citations. (May 2012)|
A compose key, whether already existent on the computer keyboard or designated to an existent key, is a modifier key used to input a number of characters that are not part of the official keyboard. Upon its use, it signals to the software to interpret the following keystrokes (usually two) as a combination to produce an alternate character. For example, striking Compose, followed by ~, and then n will produce the character ñ; striking Compose, followed by O, and then C will produce the copyright symbol ©.
The compose key's behavior differs from typical modifier key behavior (such as ⇧ Shift) in that, rather than to be held down, it is released before typing the key(s) that determine the character.
It is more useful to consider it as a kind of dead key. However, in user's mind, a standard dead key “contributes” part of the composite, typically a diacritic, and really, a standard dead key is followed by a character-generating keystroke. These rules require more than one dead key on a keyboard, especially when no chained dead keys are implemented. By contrast, compose keys use to be unique.
The advantage of a compose key pops up when compared to single dead key performance. Since the dead key registry (deadlist) starts with a limited set of (typically) simply diacrited characters, supplemental characters’ input sequences seem cryptic, such as ¨ s for ß. Reminding this one is quasi-automatic because typing German on a non-German keyboard layout needs a ¨ dead key all the way long. The compose key instead allows typing Compose s s for ß, thus needing one more keystroke (with a double stroke).
Let's take another example: The vulgar fraction two thirds ⅔ (U+2154) is most easily entered by Compose 2 3, whereas a single dead key solution turns out to be something like ~ w (as ~ 3 would be used for ⅓). Therefore, the compose key solution is easier to remember. Otherwise, users need to learn that vulgar fractions are in what may conveniently be called the Tilde Group, and scatter down the keyboard.
The disadvantage of the compose key is that its use requires one more keystroke whenever the goal is such as composed characters with one or two diacritics, which are more easily entered by dead keys. This limits its appeal to characters that are not typically precomposed ones. Many keyboard layouts  provide even direct access to a set of most frequent precomposed characters for locale language support. This highlights that the usefulness of a compose key grows as targeted characters are more peculiar and not currently occurring in the script.
Even if virtually, every dead key may “compose” something if chained (e.g. ~ 2 3 for ⅔, when ⅓ is inserted by ~ 1 3), the keyboard layout is easier to understand when all complex composed characters are together on one unique dedicated compose key. There are no intrinsic restrictions on combinations, so the use of all printing characters opens the way to lots of most memorable sequences. Thus, compose keys support far greater numbers of characters than dead keys do usually.
On the other hand, the compose key ought to be put into perspective. Especially on operating systems without compose key support, dead keys (whether chained or not) may take over huge sets of characters that otherwise would stay quite unavailable on keyboard. One of them may grow to be the designated “compose key”, since to add an emulation, there is no need to hijack any modifier or ≣ Menu key: Every chained dead key may do the job.
Occurrence on keyboards
Because Microsoft Windows and OS X do not support a compose key by default, the key does not exist on most keyboards designed for modern PC hardware. When software supports compose key behavior, some other key is used. Common examples are the right-hand Windows key, the AltGr key, ⇧ Shift+AltGr, or the right-hand Ctrl key.
ISO/IEC 9995-7 designed a graphical symbol for this key, in ISO/IEC 9995-7 as symbol 15 “Compose Character”, and in ISO 7000 “Graphical symbols for use on equipment” as symbol ISO-7000-2021. This symbol is encoded in Unicode as U+2384 composition symbol (⎄) since version 3.0.0 of the standard.
Compose keys are most popular on Linux and other systems using the X Window System. On modern Xorg the default setup maps first pressing ⇧ Shift and then pressing AltGr while ⇧ Shift is still depressed to the compose key, but pressing AltGr first followed by ⇧ Shift to the fourth "keyboard level" modifier (the first three levels correspond to holding no modifiers, ⇧ Shift, and AltGr respectively.) So for example the copyright symbol, © can be typed using the compose key as ⇧ Shift+AltGr, o, c, or using the level four modifier as AltGr+⇧ Shift+c. As this is rather inconvenient (especially if the keyboard does not have AltGr) it is common to select a keyboard layout making another key such as the right-hand Ctrl or ⊞ Win into the compose key. The compose key can be specified explicitly in GNOME settings.
On Microsoft Windows a few programs such as PuTTY provide compose key support. There are also a number of open source utilities (such as WinCompose, AllChars, Compose-Keys or Compose) and installable keyboard layouts (such as this one) available that emulate the compose key using a selectable modifier key like Control or AltGr. Such keyboard layouts can be programmed using the Windows Driver Kit.
Common compose combinations
The table shown below contains the current default common compositions for X.Org 7. Other compositions may work, based on the de facto Sun/DEC/Falco standard. For modern systems which support customizable compose sequences and Unicode, the table below is far from complete.
- "Compose Key". Ubuntu. Retrieved 10 July 2012.
- Unicode chart 2300-23FF
- van Geloven, Sander (2012). Compose Key Sequence Reference Guide 2012. Utrecht, the Netherlands: Hellebaard. ISBN 1-4681-4110-4.
- Ubuntu Help: Compose Key: Third and fourth level choosers
- Complete list of permissible sequences