*** Welcome to piglix ***

Caps lock


Caps Lock is a button on a computer keyboard that, when pressed, causes all letters to be generated in capitals until deactivated. It is located in the position of a similar Shift lock key (and sometimes a Ctrl key) found in some other keyboard layouts. It is usually a toggle key: each press reverses its action.

Exactly what Caps Lock does depends on the operating system and driver, and the keyboard layout implemented. On non-IBM PC-compatible computers it may also depend on the keyboard hardware. Usually the effect is the same as pressing keys with the shift key depressed; letters are capitalised, and non-letter characters are generated as if the shift key were depressed. For example, on most keyboards the "5" key generates "5" in non-shift mode and "%" if the shift key is pressed. If caps lock is activated the key generates "%" until deactivated. In other cases the key may only affect letters, so that the "5" key always generates "5" unless the shift key is pressed.

Typical Caps Lock behaviour is that pressing the key sets an input mode in which all typed letters are uppercase by default (i.e. in All caps). The keyboard remains in Caps Lock mode until the key is pressed again.

Several variants of this behaviour exist:

In some keyboard layouts, the status of the Caps Lock key only changes the meaning of the alphabet keys (verbatim as per capital shift lock), not that of the number row, which then still requires the Shift key to be pressed to reach the alternative key definitions.

Depending on the keyboard layout used, holding down the shift key while Caps Lock is already on is either ignored (because all keys are already shifted), will also shift keys which are not being shifted by Caps Lock alone (see above) or effectively invert the shifting status of each key, so that where Caps Lock shifts all keys, pressing Shift will temporarily switch to lowercase again, whereas on a keyboard where Caps Lock only shifts alphabet keys, pressing Shift will temporarily switch the alpha keys to lowercase while shifting the number row as normal. Some keyboard layouts implement a fourth variant, where Shift will temporarily invoke two different sets of alternative key definitions depending on if Caps Lock is currently active or not. The inverting behaviour of the Shift key is the most common variant on English keyboards.


...
Wikipedia

...