1
1
//-------------------------------------------------------------------------
3
// Copyright 2005 Sun Microsystems, Inc. All rights reserved.
3
// Copyright 2010 Sun Microsystems, Inc. All rights reserved.
5
5
// Permission is hereby granted, free of charge, to any person obtaining a
6
6
// copy of this software and associated documentation files (the
30
30
//-------------------------------------------------------------------------
32
// ident "@(#)solaris 1.7 05/11/08 SMI"
36
// The contents of this file are subject to the terms of the
37
// Common Development and Distribution License (the "License").
38
// You may not use this file except in compliance with the License.
40
// You can obtain a copy of the license at src/OPENSOLARIS.LICENSE
41
// or http://www.opensolaris.org/os/licensing.
42
// See the License for the specific language governing permissions
43
// and limitations under the License.
45
// When distributing Covered Code, include this CDDL HEADER in each
46
// file and include the License file at src/OPENSOLARIS.LICENSE.
47
// If applicable, add the following below this CDDL HEADER, with the
48
// fields enclosed by brackets "[]" replaced with your own identifying
49
// information: Portions Copyright [yyyy] [name of copyright owner]
35
54
// Default map provides backwards compatibility with Sun keyboards from
36
55
// long ago and the key mappings still used in Solaris Xsun today
39
xkb_symbols "defaults" {
58
xkb_symbols "defaults_common" {
41
60
// Left side keys were labeled L1-L10 on Sun Type 2 & Type 3 keyboards
42
61
// and the names have stuck (you can spot a longtime Sun admin when you
87
106
key <MUTE> { [ SunAudioMute, SunVideoDegauss ] };
88
107
key <VOL-> { [ SunAudioLowerVolume,SunVideoLowerBrightness ] };
89
108
key <VOL+> { [ SunAudioRaiseVolume,SunVideoRaiseBrightness ] };
90
key <POWR> { [ SunPowerSwitch, SunPowerSwitchShift ] };
92
key <LALT> { [ Alt_L ] };
93
// key <RALT> { [ Mode_switch ] };
94
// key <ALGR> { [ Mode_switch ] };
95
key <LMTA> { [ Meta_L ] };
96
key <RMTA> { [ Meta_R ] };
97
key <COMP> { [ Multi_key ] };
109
key <POWR> { [ XF86Sleep, XF86Hibernate ] };
111
// key <LALT> { [ Alt_L ] };
112
// key <LMTA> { [ Meta_L ] };
113
// key <RMTA> { [ Meta_R ] };
114
// key <COMP> { [ Multi_key ] };
118
xkb_symbols "defaults" {
119
include "sun_vndr/solaris(defaults_common)"
120
// key <RALT> { [ Mode_switch ] };
121
// key <ALGR> { [ Mode_switch ] };
123
// begin modifier mappings
124
// modifier_map Shift { Shift_R, Shift_L };
125
// modifier_map Mod1 { Alt_L };
126
// modifier_map Mod2 { Num_Lock };
127
// modifier_map Mod3 { Alt_R, Mode_switch };
128
// modifier_map Mod4 { Meta_L, Meta_R };
132
xkb_symbols "defaults_type7jp" {
133
include "sun_vndr/solaris(defaults_common)"
99
134
// begin modifier mappings
100
135
modifier_map Shift { Shift_R, Shift_L };
101
modifier_map Mod1 { Alt_L };
102
modifier_map Mod2 { Alt_R, Mode_switch };
103
modifier_map Mod3 { Num_Lock };
136
modifier_map Mod1 { Alt_L , Alt_R};
137
modifier_map Mod2 { Num_Lock };
138
modifier_map Mod3 { Mode_switch };
104
139
modifier_map Mod4 { Meta_L, Meta_R };
108
142
// Map the keys to the actual key names instead of the ancient Sun function