2 //Copyright 1996, 1998 The Open Group
4 //Permission to use, copy, modify, distribute, and sell this software and its
5 //documentation for any purpose is hereby granted without fee, provided that
6 //the above copyright notice appear in all copies and that both that
7 //copyright notice and this permission notice appear in supporting
10 //The above copyright notice and this permission notice shall be
11 //included in all copies or substantial portions of the Software.
13 //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
14 //EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
15 //MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
16 //IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
17 //OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
18 //ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
19 //OTHER DEALINGS IN THE SOFTWARE.
21 //Except as contained in this notice, the name of The Open Group shall
22 //not be used in advertising or otherwise to promote the sale, use or
23 //other dealings in this Software without prior written authorization
24 //from The Open Group.
26 // ---------------------------------------------------------------------------
27 // Copyright 2004 Sun Microsystems, Inc. All rights reserved.
29 // Permission is hereby granted, free of charge, to any person obtaining a
30 // copy of this software and associated documentation files (the "Software"),
31 // to deal in the Software without restriction, including without limitation
32 // the rights to use, copy, modify, merge, publish, distribute, sublicense,
33 // and/or sell copies of the Software, and to permit persons to whom the
34 // Software is furnished to do so, subject to the following conditions:
36 // The above copyright notice and this permission notice (including the next
37 // paragraph) shall be included in all copies or substantial portions of the
40 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
41 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
42 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
43 // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
44 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
45 // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
46 // DEALINGS IN THE SOFTWARE.
48 // ---------------------------------------------------------------------------
51 default xkb_keycodes "type4" {
124 alias <RALT> = <ALGR>;
176 indicator 4 = "Caps Lock";
177 indicator 3 = "Compose";
178 indicator 2 = "Scroll Lock";
179 indicator 1 = "Num Lock";
182 xkb_keycodes "type5" {
219 alias <RALT> = <ALGR>;
320 indicator 4 = "Caps Lock";
321 indicator 3 = "Compose";
322 indicator 2 = "Scroll Lock";
323 indicator 1 = "Num Lock";
326 xkb_keycodes "type4tuv" {
332 xkb_keycodes "type4_ca" {
337 xkb_keycodes "type4_jp" {
343 alias <UNDR> = <LNFD>;
346 xkb_keycodes "type4_euro" {
351 xkb_keycodes "type5tuv" {
356 xkb_keycodes "type5_jp" {
364 xkb_keycodes "type5_euro" {
369 xkb_keycodes "type5hobo" {
406 alias <RALT> = <ALGR>;
507 indicator 4 = "Caps Lock";
508 indicator 3 = "Compose";
509 indicator 2 = "Scroll Lock";
510 indicator 1 = "Num Lock";
513 xkb_keycodes "type5tuvhobo" {
514 include "sun(type5hobo)"
519 xkb_keycodes "type5_jphobo" {
520 include "sun(type5hobo)"
527 xkb_keycodes "type6" {
531 xkb_keycodes "type6tuv" {
532 include "sun(type5tuv)"
535 xkb_keycodes "type6unix" {
539 xkb_keycodes "type6_jp" {
540 include "sun(type5_jp)"
543 xkb_keycodes "type6_euro" {
544 include "sun(type5_euro)"
547 // Even though this is labeled as _usb, I verified these keycodes as accurate
548 // on my type5 serial and type6 serial keyboards as well on linux-2.6 boxes.
549 // I'm not sure where the "type5" keycodes above are coming from...
550 xkb_keycodes "type6_usb" {
566 // The blank has keycode 239 on my type6 serial kb, but 134 on
567 // my type6 usb keyboard (same as <PROP>)
570 // AltGr + PrScr actually sends a different keycode
578 indicator 4 = "Compose";
581 xkb_keycodes "type6tuv_usb" {
582 include "sun(type6_usb)"
587 xkb_keycodes "type6_jp_usb" {
588 include "sun(type6_usb)"
589 alias <UNDR> = <KPDC>; // 123
590 alias <EXEC> = <I0B>; // 139
591 alias <KANJ> = <I0A>; // 138
592 alias <HENK> = <XFER>; // 129
593 indicator 5 = "Kana";
596 xkb_keycodes "type5_se" {
640 alias <TLDE> = <AE00>;
670 alias <TAB> = <AD00>;
699 alias <CAPS> = <AC00>;
712 alias <BKSL> = <AC12>;
726 alias <LSGT> = <AB00>;
758 alias <RALT> = <ALGR>;
768 indicator 4 = "Caps Lock";
769 indicator 3 = "Compose";
770 indicator 2 = "Scroll Lock";
771 indicator 1 = "Num Lock";
774 xkb_keycodes "type5c_se" {
775 include "sun(type5_se)"
778 xkb_keycodes "type4__se" {
800 alias <TLDE> = <AF13>;
815 alias <ESC> = <AE00>;
841 alias <TAB> = <AD00>;
866 // alias <CAPS> = <AC00>;
879 alias <BKSL> = <AC12>;
893 alias <LSGT> = <AB00>;
917 // alias <LCTL> = <AA00>;
924 alias <RALT> = <ALGR>;
930 indicator 4 = "Caps Lock";
931 indicator 3 = "Compose";
932 indicator 2 = "Scroll Lock";
933 indicator 1 = "Num Lock";
936 xkb_keycodes "type4_se" {
938 include "sun(type4__se)"
940 alias <LCTL> = <AA00>;
941 alias <CAPS> = <AC00>;
944 xkb_keycodes "type4_se_swapctl" {
946 include "sun(type4__se)"
948 alias <LCTL> = <AC00>;
949 alias <CAPS> = <AA00>;