next up previous contents
Next: Explanation of Sample Keyboard Up: Writing Keyboard Definition Files Previous: Writing Keyboard Definition Files   Contents

Sample Keyboard Definition File

Here are the contents of one version of QWERTY.key, the file most people use by default. Line numbers which are not a part of the file's syntax are in italics. Following the example are details on the syntax and meaning of the items in the file.

1: 14 14 13 12 5
2: quoteleft asciitilde asciitilde 49 # Begin row 1
3: 1 exclam 1 10
4: 2 at 2 11
5: 3 numbersign 3 12
6: 4 dollar 4 13
7: 5 percent 5 14
8: 6 asciicircum 6 15
9: 7 ampersand 7 16
10: 8 asterisk 8 17
11: 9 parenleft 9 18
12: 0 parenright 0 19
13: minus underscore minus 20
14: equal plus equal 21
15: BackSpace BackSpace BackSpace 22
16: Tab Tab Tab 23 # Begin row 2
17: q Q q 24
18: w W w 25
19: e E e 26
20: r R r 27
21: t T t 28
22: y Y y 29
23: u U u 30
24: i I i 31
25: o O o 32
26: p P p 33
27: bracketleft braceleft bracketleft 34
28: bracketright braceright bracketright 35
29: backslash bar backslash 51
30: Caps_Lock Caps_Lock Caps_Lock 66 LockMask # Begin row 3
31: a A a 38
32: s S s 39
33: d D d 40
34: f F f 41
35: g G g 42
36: h H h 43
37: j J j 44
38: k K k 45
39: l L l 46
40: semicolon colon semicolon 47
41: apostrophe quotedbl apostrophe 48
42: Return Return Return 36
43: Shift_L Shift_L Shift_L 50 ShiftMask # Begin row 4
44: z Z z 52
45: x X x 53
46: c C c 54
47: v V v 55
48: b B b 56
49: n N n 57
50: m M m 58
51: comma less comma 59
52: period greater period 60
53: slash question slash 61
54: Shift_R Shift_R Shift_R 62 ShiftMask
55: Control_L Control_L Control_L 37 ControlMask # Begin row 5
56: Alt_L Alt_L Alt_L 64 Mod1Mask
57: space space space 65
58: Alt_R Alt_R Alt_R 113 Mod1Mask
59: Control_R Control_R Control_R 109 ControlMask


next up previous contents
Next: Explanation of Sample Keyboard Up: Writing Keyboard Definition Files Previous: Writing Keyboard Definition Files   Contents
David Allen 2001-04-26