~ubuntu-branches/ubuntu/gutsy/vnc4/gutsy

« back to all changes in this revision

Viewing changes to unix/xc/programs/xkbcomp/geometry/macintosh

  • Committer: Bazaar Package Importer
  • Author(s): Ola Lundqvist
  • Date: 2006-05-15 20:35:17 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060515203517-l4lre1ku942mn26k
Tags: 4.1.1+X4.3.0-10
* Correction of critical security issue. Thanks to Martin Kogler
  <e9925248@student.tuwien.ac.at> that informed me about the issue,
  and provided the patch.
  This flaw was originally found by Steve Wiseman of intelliadmin.com.
* Applied patch from Javier Kohen <jkohen@users.sourceforge.net> that
  inform the user that only 8 first characters of the password will
  actually be used when typing more than 8 characters, closes:
  #355619.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// $XFree86: xc/programs/xkbcomp/geometry/macintosh,v 1.2 2000/08/26 04:30:59 dawes Exp $
 
2
default xkb_geometry "macintosh" {
 
3
 
 
4
    description= "Apple Extended Keyboard II";
 
5
    width= 470;
 
6
    height= 210;
 
7
 
 
8
    shape.cornerRadius= 1;
 
9
    shape "NORM" { { [ 18,18] }, { [2,1], [ 16,17] } };
 
10
    shape "BKSP" { { [ 37,18] }, { [2,1], [ 35,17] } };
 
11
    shape "TAB"  { { [ 28,18] }, { [2,1], [ 26,17] } };
 
12
    shape "BKSL" { { [ 28,18] }, { [2,1], [ 26,17] } };
 
13
    shape "RTRN" { { [ 42,18] }, { [2,1], [ 40,17] } };
 
14
    shape "CAPS" { { [ 32,18] }, { [2,1], [ 30,17] } };
 
15
    shape "LCTL" { { [ 28,18] }, { [2,1], [ 26,17] } };
 
16
    shape "LALT" { { [ 28,18] }, { [2,1], [ 26,17] } };
 
17
    shape "LMTA" { { [ 28,18] }, { [2,1], [ 26,17] } };
 
18
    shape "LFSH" { { [ 42,18] }, { [2,1], [ 40,17] } };
 
19
    shape "RCTL" { { [ 28,18] }, { [2,1], [ 26,17] } };
 
20
    shape "RALT" { { [ 28,18] }, { [2,1], [ 26,17] } };
 
21
    shape "RMTA" { { [ 28,18] }, { [2,1], [ 26,17] } };
 
22
    shape "RTSH" { { [ 42,18] }, { [2,1], [ 40,17] } };
 
23
    shape "SPCE" { { [112,18] }, { [2,1], [110,17] } };
 
24
    shape "KP0"  { { [ 37,18] }, { [2,1], [ 35,17] } };
 
25
    shape "KPEN" { { [ 18,37] }, { [2,1], [ 16,36] } };
 
26
 
 
27
    shape "LEDS" { cornerRadius= 0, { [ 76 ,20 ] } };
 
28
    shape "LED"  { cornerRadius= 0, { [  5,  1 ] } };
 
29
 
 
30
    solid "LedPanel" {
 
31
        shape= "LEDS";
 
32
        top=  52;
 
33
        left= 375;
 
34
    };
 
35
 
 
36
    indicator.onColor= "green";
 
37
    indicator.offColor= "green30";
 
38
    indicator.top= 67;
 
39
    indicator.shape= "LED";
 
40
    indicator "NumLock"     { left= 379; };
 
41
    indicator "CapsLock"    { left= 404; };
 
42
    indicator "ScrollLock"  { left= 429; };
 
43
    text.top= 55;
 
44
    text.color= "black";
 
45
    text "NumLockLabel"         { left= 378; text="Num\nLock"; };
 
46
    text "CapsLockLabel"        { left= 403; text="Caps\nLock"; };
 
47
    text "ScrollLockLabel"      { left= 428; text="Scroll\nLock"; };
 
48
 
 
49
    section.left= 19;
 
50
    row.left= 1;
 
51
    key.shape= "NORM";
 
52
    key.gap=  1;
 
53
 
 
54
    section "Function" {
 
55
        top= 52;
 
56
        row {
 
57
            top= 1;
 
58
            keys {  <ESC>,  <FK01>, <FK02>, <FK03>, <FK04>,
 
59
                    <FK05>, <FK06>, <FK07>, <FK08>, <FK09>,
 
60
                    <FK10>, <FK11>, <FK12>, <PRSC>, <SCLK>,
 
61
                    <PAUS>
 
62
            };
 
63
        };
 
64
    }; // End of "Function" section
 
65
 
 
66
    section "Alpha" {
 
67
        top= 91;
 
68
        row {
 
69
            top= 1;
 
70
            keys { <TLDE>, <AE01>, <AE02>, <AE03>, <AE04>,
 
71
                   <AE05>, <AE06>, <AE07>, <AE08>, <AE09>,
 
72
                   <AE10>, <AE11>, <AE12>, { <BKSP>, "BKSP" }
 
73
            };
 
74
        };
 
75
        row {
 
76
            top= 20;
 
77
            keys { { <TAB>, "TAB" },  <AD01>, <AD02>, <AD03>,
 
78
                   <AD04>, <AD05>, <AD06>, <AD07>, <AD08>, <AD09>,
 
79
                   <AD10>, <AD11>, <AD12>, { <BKSL>, "BKSL" }
 
80
            };
 
81
        };
 
82
        row {
 
83
            top= 39;
 
84
            keys { { <CAPS>, "CAPS" }, <AC01>, <AC02>, <AC03>,
 
85
                   <AC04>, <AC05>, <AC06>, <AC07>, <AC08>, <AC09>,
 
86
                   <AC10>, <AC11>, { <RTRN>, "RTRN" }
 
87
            };
 
88
        };
 
89
        row {
 
90
            top= 58;
 
91
            keys { { <LFSH>, "LFSH" }, <AB01>, <AB02>, <AB03>,
 
92
                   <AB04>, <AB05>, <AB06>, <AB07>, <AB08>, <AB09>,
 
93
                   <AB10>, { <RTSH>, "RTSH" }
 
94
            };
 
95
        };
 
96
        row {
 
97
            top= 77;
 
98
            keys { { <LCTL>, "LCTL" }, { <LALT>, "LALT" },
 
99
                   { <LMTA>, "LMTA" },
 
100
                   { <SPCE>, "SPCE" }, 
 
101
                   { <RMTA>, "RMTA" },
 
102
                   { <RALT>, "RALT" }, { <RCTL>, "RCTL" }
 
103
            };
 
104
        };
 
105
    }; // End of "Alpha" section
 
106
 
 
107
    section "Editing" {
 
108
        top= 91;
 
109
        left= 310;
 
110
        row {
 
111
            top= 1;
 
112
            keys { <INS>, <HOME>, <PGUP> };
 
113
        };
 
114
        row {
 
115
            top= 20;
 
116
            keys { <DELE>, <END>, <PGDN> };
 
117
        };
 
118
        row {
 
119
            top= 58;
 
120
            left= 20;
 
121
            keys { <UP> };
 
122
        };
 
123
        row {
 
124
            top= 77;
 
125
            keys { <LEFT>, <DOWN>, <RGHT> };
 
126
        };
 
127
    }; // End of "Editing" section
 
128
 
 
129
    // Begin of "Keypad" section
 
130
    section "Keypad" {
 
131
        top= 91;
 
132
        left= 375;
 
133
        row {
 
134
            top= 1;
 
135
            keys { <NMLK>, <KPEQ>, <KPDV>, <KPMU> };
 
136
        };
 
137
        row {
 
138
            top= 20;
 
139
            keys { <KP7>, <KP8>, <KP9>, <KPSU> };
 
140
        };
 
141
        row {
 
142
            top= 39;
 
143
            keys { <KP4>, <KP5>, <KP6>, <KPAD> };
 
144
        };
 
145
        row {
 
146
            top= 58;
 
147
            keys { <KP1>, <KP2>, <KP3>, { <KPEN>, "KPEN" } };
 
148
        };
 
149
        row {
 
150
            top= 77;
 
151
            keys { { <KP0>, "KP0" },  <KPDL> };
 
152
        };
 
153
    }; // End of "Keypad" section
 
154
 
 
155
}; // End of "default" geometry