X Keyboard Extension - Latched and Locked Modifiers

Latched and Locked Modifiers

XKB allows a modifier to be locked or latched, other than being in its regular state. Normally, a modifier is active exactly when it is pressed, like the Shift. However, a modifier may also be locked, like the Caps Lock modifier. In particular, when a modifier is locked, it remains active until it is explicitly deactivated. An intermediate condition between regular and locked is the latched state: When a modifier is latched, it remains active, but only until the next non-modifier key is pressed.

XKB allows a client application to explicitly latch or lock a modifier. Moreover, an application can bind a key press or release to a modifier state change. This way, a modifier may automatically become latched or locked whenever a key is pressed or released.

Read more about this topic:  X Keyboard Extension

Famous quotes containing the words latched and/or locked:

    Dry as a tomb, your coloured lids
    Shall not be latched while magic glides
    Sage on the earth and sky;
    There shall be corals in your beds,
    There shall be serpents in your tides,
    Till all our sea-faiths die.
    Dylan Thomas (1914–1953)

    In a language known to us, we have substituted the opacity of the sounds with the transparence of the ideas. But a language we do not know is a closed place in which the one we love can deceive us, making us, locked outside and convulsed in our impotence, incapable of seeing or preventing anything.
    Marcel Proust (1871–1922)