86 Codes sent by the X server to the client indicating which key |
86 Codes sent by the X server to the client indicating which key |
87 was pressed. Keycodes by themselves do not indicate what the |
87 was pressed. Keycodes by themselves do not indicate what the |
88 keystroke means; the client must request that information from |
88 keystroke means; the client must request that information from |
89 the X server. |
89 the X server. |
90 modifiers |
90 modifiers |
91 Flags, such as ``shift'' and ``control,'' that the server sends |
91 Flags, such as ``shift`` and ``control``, that the server sends |
92 with each keycode to the client. The client's interpretation of |
92 with each keycode to the client. The client's interpretation of |
93 the keycode may depend on the state of the modifiers. For |
93 the keycode may depend on the state of the modifiers. For |
94 example, the state of the shift modifier determines whether an |
94 example, the state of the shift modifier determines whether an |
95 alphabetic character should be lowercase or uppercase. Because |
95 alphabetic character should be lowercase or uppercase. Because |
96 the X server encodes the states of the eight modifiers (shift, |
96 the X server encodes the states of the eight modifiers (shift, |
97 lock, control, mod1, mod2, mod3, mod4, and mod5) in a single |
97 lock, control, mod1, mod2, mod3, mod4, and mod5) in a single |
98 byte of data, modifiers are often referred to as ``modifier |
98 byte of data, modifiers are often referred to as ``modifier |
99 bits.'' |
99 bits``. |
100 keysyms |
100 keysyms |
101 codes that specify the glyphs appearing on the keys. The X |
101 codes that specify the glyphs appearing on the keys. The X |
102 server also maintains a list of strings that describe the |
102 server also maintains a list of strings that describe the |
103 keysyms, such as ``a'', ``B'', and ``Control.'' |
103 keysyms, such as ``a``, ``B``, and ``Control``. |
104 |
104 |
105 Find the keycode. |
105 Find the keycode. |
106 ================= |
106 ================= |
107 |
107 |
108 :: |
108 :: |