| 1 |
// |
| 2 |
// Copyright (c) 2010, 2012, Oracle and/or its affiliates. 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 |
partial |
| 31 |
xkb_symbols "defaults_common" { |
| 32 |
|
| 33 |
key <MUTE> { [ XF86AudioMute ] }; |
| 34 |
key <VOL-> { [ XF86AudioLowerVolume ] }; |
| 35 |
key <VOL+> { [ XF86AudioRaiseVolume ] }; |
| 36 |
key <POWR> { [ XF86PowerOff ] }; |
| 37 |
key <STOP> { [ Cancel ] }; |
| 38 |
key <AGAI> { [ Redo ] }; |
| 39 |
key <PROP> { [ SunProps ] }; |
| 40 |
key <UNDO> { [ Undo ] }; |
| 41 |
key <FRNT> { [ SunFront ] }; |
| 42 |
key <COPY> { [ XF86Copy ] }; |
| 43 |
key <OPEN> { [ SunOpen ] }; |
| 44 |
key <PAST> { [ XF86Paste ] }; |
| 45 |
key <FIND> { [ Find ] }; |
| 46 |
key <CUT> { [ XF86Cut ] }; |
| 47 |
key <HELP> { [ Help ] }; |
| 48 |
key <LNFD> { [ Linefeed ] }; |
| 49 |
|
| 50 |
key <LALT> { [ Alt_L, Alt_L ] }; |
| 51 |
key <LWIN> { [ Meta_L ] }; |
| 52 |
key <RWIN> { [ Meta_R ] }; |
| 53 |
|
| 54 |
// The following is needed for virtual hotkeys |
| 55 |
|
| 56 |
key <I150> { [ XF86Sleep ] }; |
| 57 |
key <I160> { [ XF86ScreenSaver ] }; |
| 58 |
key <I235> { [ XF86Display ] }; |
| 59 |
|
| 60 |
// Common Sun Modifiers |
| 61 |
|
| 62 |
modifier_map Shift { Shift_R, Shift_L }; |
| 63 |
modifier_map Mod2 { Num_Lock }; |
| 64 |
modifier_map Mod4 { Meta_L, Meta_R }; |
| 65 |
|
| 66 |
}; |
| 67 |
|
| 68 |
default partial |
| 69 |
xkb_symbols "defaults" { |
| 70 |
|
| 71 |
include "sun_vndr/solaris(defaults_common)" |
| 72 |
|
| 73 |
modifier_map Mod1 { Alt_L }; |
| 74 |
|
| 75 |
}; |
| 76 |
|
| 77 |
partial |
| 78 |
xkb_symbols "defaults_type7jp" { |
| 79 |
|
| 80 |
include "sun_vndr/solaris(defaults_common)" |
| 81 |
|
| 82 |
modifier_map Mod1 { Alt_L, Alt_R }; |
| 83 |
|
| 84 |
}; |
| 85 |
|
| 86 |
partial |
| 87 |
xkb_symbols "sun_compat" { |
| 88 |
|
| 89 |
key <STOP> { [ L1, L1, SunStop ] }; |
| 90 |
key <AGAI> { [ L2, L2, SunAgain ] }; |
| 91 |
key <PROP> { [ L3, L3, SunProps ] }; |
| 92 |
key <UNDO> { [ L4, L4, SunUndo ] }; |
| 93 |
key <FRNT> { [ L5, L5, SunFront ] }; |
| 94 |
key <COPY> { [ L6, L6, SunCopy ] }; |
| 95 |
key <OPEN> { [ L7, L7, SunOpen ] }; |
| 96 |
key <PAST> { [ L8, L8, SunPaste ] }; |
| 97 |
key <FIND> { [ L9, L9, SunFind ] }; |
| 98 |
key <CUT> { [ L10, L10, SunCut ] }; |
| 99 |
|
| 100 |
// F11 & F12 are mapped to SunF36 and SunF37 since they were added |
| 101 |
// after F11-F35 were already assigned on Sun keyboards |
| 102 |
key <FK11> { [ SunF36 ], [ F11 ] }; |
| 103 |
key <FK12> { [ SunF37 ], [ F12 ] }; |
| 104 |
|
| 105 |
// These were added to the keyboard much later and simply got mapped |
| 106 |
// to their logical names |
| 107 |
key <HELP> { [ Help ] }; |
| 108 |
key <MUTE> { [ SunAudioMute, SunVideoDegauss ] }; |
| 109 |
key <VOL-> { [ SunAudioLowerVolume, SunVideoLowerBrightness ] }; |
| 110 |
key <VOL+> { [ SunAudioRaiseVolume, SunVideoRaiseBrightness ] }; |
| 111 |
key <POWR> { [ XF86Sleep, XF86Hibernate ] }; |
| 112 |
}; |