Remove RCS tags
[xorg/xkeyboard-config] / symbols / sun_vndr / tuv
1 //
2 // Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
3 //
4 // Permission is hereby granted, free of charge, to any person obtaining a
5 // copy of this software and associated documentation files (the
6 // "Software"), to deal in the Software without restriction, including
7 // without limitation the rights to use, copy, modify, merge, publish,
8 // distribute, and/or sell copies of the Software, and to permit persons
9 // to whom the Software is furnished to do so, provided that the above
10 // copyright notice(s) and this permission notice appear in all copies of
11 // the Software and that both the above copyright notice(s) and this
12 // permission notice appear in supporting documentation.
13 // 
14 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
17 // OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
18 // HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
19 // INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
20 // FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
21 // NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
22 // WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
23 // 
24 // Except as contained in this notice, the name of a copyright holder
25 // shall not be used in advertising or otherwise to promote the sale, use
26 // or other dealings in this Software without prior written authorization
27 // of the copyright holder.
28 //
29 //
30 //Copyright 1996, 1998  The Open Group
31 //
32 //All Rights Reserved.
33 //
34 //The above copyright notice and this permission notice shall be
35 //included in all copies or substantial portions of the Software.
36 //
37 //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
38 //EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
39 //MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
40 //IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
41 //OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
42 //ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
43 //OTHER DEALINGS IN THE SOFTWARE.
44 //
45 //Except as contained in this notice, the name of The Open Group shall
46 //not be used in advertising or otherwise to promote the sale, use or
47 //other dealings in this Software without prior written authorization
48 //from The Open Group.
49 //
50 // US/ASCII layout for a Type 4 Sun keyboard
51
52 //
53 // CDDL HEADER START
54 //
55 // The contents of this file are subject to the terms of the
56 // Common Development and Distribution License (the "License").
57 // You may not use this file except in compliance with the License.
58 //
59 // You can obtain a copy of the license at src/OPENSOLARIS.LICENSE
60 // or http://www.opensolaris.org/os/licensing.
61 // See the License for the specific language governing permissions
62 // and limitations under the License.
63 //
64 // When distributing Covered Code, include this CDDL HEADER in each
65 // file and include the License file at src/OPENSOLARIS.LICENSE.
66 // If applicable, add the following below this CDDL HEADER, with the
67 // fields enclosed by brackets "[]" replaced with your own identifying
68 // information: Portions Copyright [yyyy] [name of copyright owner]
69 //
70 // CDDL HEADER END
71 //
72
73
74 xkb_symbols "type4basic" {
75     include "us(basic)"
76
77     key <RTSH> { [ Shift_R              ]                       };
78     key <LALT> { [ Alt_L                ]                       };
79     key <ALGR> { [ Mode_switch          ]                       };
80     key <LMTA> { [ Meta_L               ]                       };
81     key <RMTA> { [ Meta_R               ]                       };
82     key <LNFD> { [ Linefeed             ]                       };
83     key <COMP> { [ Multi_key            ]                       };
84     // End alphanumeric section
85
86     // Begin "Function" section
87     key <FK01> { [ F1                   ]                       };
88     key <FK02> { [ F2                   ]                       };
89     key <FK03> { [ F3                   ]                       };
90     key <FK04> { [ F4                   ]                       };
91     key <FK05> { [ F5                   ]                       };
92     key <FK06> { [ F6                   ]                       };
93     key <FK07> { [ F7                   ]                       };
94     key <FK08> { [ F8                   ]                       };
95     key <FK09> { [ F9                   ]                       };
96     key <FK10> { [ F10                  ]                       };
97     key <FK11> { [ SunF36               ]                       };
98     key <FK12> { [ SunF37               ]                       };
99     key <STOP> { [ L1,  L1              ], [ SunStop    ]       };
100     key <AGAI> { [ L2,  L2              ], [ SunAgain   ]       };
101     key <PROP> { [ L3,  L3              ], [ SunProps   ]       };
102     key <UNDO> { [ L4,  L4              ], [ SunUndo    ]       };
103     key <FRNT> { [ L5,  L5              ], [ SunFront   ]       };
104     key <COPY> { [ L6,  L6              ], [ SunCopy    ]       };
105     key <OPEN> { [ L7,  L7              ], [ SunOpen    ]       };
106     key <PAST> { [ L8,  L8              ], [ SunPaste   ]       };
107     key <FIND> { [ L9,  L9              ], [ SunFind    ]       };
108     key <CUT>  { [ L10, L10             ], [ SunCut     ]       };
109     // End "Function" section
110
111     // Begin "Editing" section
112     key <PRSC> { [ R2,  R2              ], [ Print              ] };
113     key <SCLK> { [ R3,  R3              ], [ Scroll_Lock, Break ] };
114     key <PAUS> { [ R1,  R1              ], [ Pause              ] };
115     key <DELE> { [ Delete               ]                       };
116     key <HELP> { [ Help                 ]                       };
117
118     // End "Editing" section, begin "Keypad"
119     key <NMLK> { [ Num_Lock             ]                       };
120     key <KPEQ> { [ R4,  R4              ], [ KP_Equal           ] };
121     key <KPDV> { [ R5,  R5              ], [ KP_Divide          ] };
122     key <KPMU> { [ R6,  R6              ], [ KP_Multiply        ] };
123     key <KPSU> { [ KP_Subtract          ]                       };
124
125     key  <KP7> { [ R7,  R7              ], [ KP_7, Home         ] };
126     key  <KP8> { [ Up, R8               ], [ KP_8               ] };
127 //    key  <KP8> { [ R8,        R8              ], [ KP_8               ] };
128     key  <KP9> { [ R9,  R9              ], [ KP_9, Prior        ] };
129     key <KPAD> { [ KP_Add               ]                       };
130
131     key  <KP4> { [ Left, R10            ], [ KP_4               ] };
132     key  <KP5> { [ R11, R11             ], [ KP_5               ] };
133     key  <KP6> { [ Right, R12           ], [ KP_6               ] };
134
135     key  <KP1> { [ R13, R13             ], [ KP_1,      End     ] };
136     key  <KP2> { [ Down, R14            ], [ KP_2               ] };
137     key  <KP3> { [ R15, R15             ], [ KP_3,      Next    ] };
138     key <KPEN> { [ KP_Enter             ]                       }; 
139     key  <KP0> { [ KP_Insert, KP_Insert], [ KP_0                ]       };
140     key <KPDL> { [ Delete, Delete       ], [ KP_Decimal ]       };
141     // End "Keypad" section
142
143
144     // begin modifier mappings
145     modifier_map Shift          { Shift_R, Shift_L };
146     modifier_map Mod1           { Meta_L, Meta_R };
147     modifier_map Mod2           { Num_Lock };
148     modifier_map Mod3           { Mode_switch };
149     modifier_map Mod4           { Alt_L };
150 };
151
152 xkb_symbols "type4" {
153     include "sun_vndr/us(type4basic)"
154
155     // A few alphanumeric keys are different
156     key <AE04> { [ 4, dollar            ], [ EuroSign   ]       };
157     key <AE05> { [ 5, percent           ], [ EuroSign   ]       };
158     key <AD03> { [ e, E                 ], [ EuroSign   ]       };
159 };
160
161 // US/ASCII layout for a Type 5 Sun keyboard
162 xkb_symbols "type5basic" {
163     include "us(basic)"
164
165     key <RTSH> { [ Shift_R              ]       };
166     key <LALT> { [ Alt_L                ]       };
167     key <ALGR> { [ Mode_switch          ]       };
168     key <LMTA> { [ Meta_L               ]       };
169     key <RMTA> { [ Meta_R               ]       };
170     key <COMP> { [ Multi_key            ]       };
171     // End alphanumeric section
172
173     // Begin "Function" section
174     key <FK01> { [ F1                   ]                       };
175     key <FK02> { [ F2                   ]                       };
176     key <FK03> { [ F3                   ]                       };
177     key <FK04> { [ F4                   ]                       };
178     key <FK05> { [ F5                   ]                       };
179     key <FK06> { [ F6                   ]                       };
180     key <FK07> { [ F7                   ]                       };
181     key <FK08> { [ F8                   ]                       };
182     key <FK09> { [ F9                   ]                       };
183     key <FK10> { [ F10                  ]                       };
184     key <FK11> { [ SunF36               ]                       };
185     key <FK12> { [ SunF37               ]                       };
186     key <STOP> { [ L1, L1               ], [ SunStop    ]       };
187     key <AGAI> { [ L2, L2               ], [ SunAgain   ]       };
188     key <PROP> { [ L3, L3               ], [ SunProps   ]       };
189     key <UNDO> { [ L4, L4               ], [ SunUndo    ]       };
190     key <FRNT> { [ L5, L5               ], [ SunFront   ]       };
191     key <COPY> { [ L6, L6               ], [ SunCopy    ]       };
192     key <OPEN> { [ L7, L7               ], [ SunOpen    ]       };
193     key <PAST> { [ L8, L8               ], [ SunPaste   ]       };
194     key <FIND> { [ L9, L9               ], [ SunFind    ]       };
195     key <CUT>  { [ L10, L10             ], [ SunCut     ]       };
196     // End "Function" section
197
198     // Begin "Editing" section
199     key <PRSC> { [ R2, R2               ], [ Print, SunSys_Req  ]       };
200     key <SCLK> { [ R3, R3               ], [ Scroll_Lock        ]       };
201     key <PAUS> { [ R1, R1               ], [ Pause, Break       ]       };
202     key <LEFT> { [ Left                 ]                       };
203     key <RGHT> { [ Right                ]                       };
204     key <UP>   { [ Up                   ]                       };
205     key <DOWN> { [ Down                 ]                       };
206
207     key <DELE> { [ Delete               ]                       };
208     key <INS>  { [ Insert               ]                       };
209     key <PGUP> { [ Prior                ]                       };
210     key <PGDN> { [ Next                 ]                       };
211     key <HOME> { [ Home                 ]                       };
212     key <END>  { [ End                  ]                       };
213     key <HELP> { [ Help                 ]                       };
214
215     // End "Editing" section, begin "Keypad"
216     key <NMLK> { [ Num_Lock             ]                               };
217     key <KPDV> { [ R5, R5               ], [ KP_Divide  ]       };
218     key <KPMU> { [ R6, R6               ], [ KP_Multiply        ]       };
219     key <KPSU> { [ R4, R4               ], [ KP_Subtract        ]       };
220
221     key  <KP7> { [ R7, R7               ], [ KP_7, Home         ]       };
222     key  <KP8> { [ Up, R8               ], [ KP_8               ]       };
223     key  <KP9> { [ R9, R9               ], [ KP_9, Prior        ]       };
224     key <KPAD> { [ KP_Add               ]                               };
225
226     key  <KP4> { [ Left, R10            ], [ KP_4               ]       };
227     key  <KP5> { [ R11, R11             ], [ KP_5               ]       };
228     key  <KP6> { [ Right, R12           ], [ KP_6               ]       };
229
230     key  <KP1> { [ R13, R13             ], [ KP_1, End          ]       };
231     key  <KP2> { [ Down, R14            ], [ KP_2               ]       };
232     key  <KP3> { [ R15, R15             ], [ KP_3               ]       };
233     key <KPEN> { [ KP_Enter             ]                               };
234
235     key  <KP0> { [ KP_Insert, KP_Insert ], [ KP_0               ]       };
236     key <KPDL> { [ KP_Delete, KP_Delete ], [ KP_Decimal         ]       };
237     // End "Keypad" section, 
238     // begin "four keys up on the right"
239
240     key <MUTE> { [ SunAudioMute,        SunVideoDegauss         ]       };
241     key <VOL-> { [ SunAudioLowerVolume, SunVideoLowerBrightness ]       };
242     key <VOL+> { [ SunAudioRaiseVolume, SunVideoRaiseBrightness ]       };
243     key <POWR> { [ SunPowerSwitch,      SunPowerSwitchShift     ]       };
244
245     // begin modifier mappings
246     modifier_map Shift  { Shift_R };
247     modifier_map Mod1   { Meta_L, Meta_R };
248     modifier_map Mod2   { Num_Lock };
249     modifier_map Mod3   { Alt_R };
250     modifier_map Mod4   { Alt_L };
251 };
252
253 xkb_symbols "type5" {
254     include "sun_vndr/us(type5basic)"
255
256     // A few alphanumeric keys are different
257     key <AE04> { [ 4, dollar            ], [ EuroSign   ]       };
258     key <AE05> { [ 5, percent           ], [ EuroSign   ]       };
259     key <AD03> { [ e, E                 ], [ EuroSign   ]       };
260     key <BKSL> { [ backslash, bar       ], [ brokenbar  ]       };
261 };