Difference between revisions of "Compose keys"
From Linuxintro
imported>ThorstenStaerk |
imported>ThorstenStaerk |
||
Line 1: | Line 1: | ||
If you press a '''`''' and an '''e''', you get an '''è'''. In this case the key '''`''' is called a [[dead key]] because it is at first stroke dead. A bit more tricky is the compose key. Press the compose key and then type two keys, and both keys will be combined. E.g. type the compose key, then the comma, then '''c''' and the outcome is '''ç'''. | If you press a '''`''' and an '''e''', you get an '''è'''. In this case the key '''`''' is called a [[dead key]] because it is at first stroke dead. A bit more tricky is the compose key. Press the compose key and then type two keys, and both keys will be combined. E.g. type the compose key, then the comma, then '''c''' and the outcome is '''ç'''. | ||
+ | |||
+ | Let's define your right Windows key as your compose key. To do this, start the [[program]] [[xev]] and press the right Windows key. You get an output like | ||
+ | KeyPress event, serial 34, synthetic NO, window 0x3400001, | ||
+ | root 0x1d8, subw 0x0, time 287118161, (229,-209), root:(233,584), | ||
+ | state 0x10, keycode '''''134''''' (keysym 0xff20, Multi_key), same_screen YES, | ||
+ | XKeysymToKeycode returns keycode: 116 | ||
+ | XLookupString gives 0 bytes: | ||
+ | XmbLookupString gives 0 bytes: | ||
+ | XFilterEvent returns: True | ||
= See also = | = See also = | ||
* [[configure your keyboard layout]] | * [[configure your keyboard layout]] |
Revision as of 04:35, 20 November 2010
If you press a ` and an e, you get an è. In this case the key ` is called a dead key because it is at first stroke dead. A bit more tricky is the compose key. Press the compose key and then type two keys, and both keys will be combined. E.g. type the compose key, then the comma, then c and the outcome is ç.
Let's define your right Windows key as your compose key. To do this, start the program xev and press the right Windows key. You get an output like
KeyPress event, serial 34, synthetic NO, window 0x3400001, root 0x1d8, subw 0x0, time 287118161, (229,-209), root:(233,584), state 0x10, keycode 134 (keysym 0xff20, Multi_key), same_screen YES, XKeysymToKeycode returns keycode: 116 XLookupString gives 0 bytes: XmbLookupString gives 0 bytes: XFilterEvent returns: True