lv3:ralt_alt, b.fd.o#9070
[xorg/xkeyboard-config] / symbols / level3
1 // $XKeyboardConfig$
2
3 // these variants assign various XKB keycodes to ISO_Level3_Shift so that
4 // the third shift level can be reached
5 //
6 // $XFree86: xc/programs/xkbcomp/symbols/level3,v 1.7 2003/09/08 14:25:32 eich Exp $
7 //
8
9 // the default behavior is for the right Alt key (AltGr) to generate the
10 // third engraved symbol
11 default partial modifier_keys
12 xkb_symbols "ralt_switch" {
13   key <RALT> {
14     type[Group1]="ONE_LEVEL",
15     symbols[Group1] = [ ISO_Level3_Shift ]
16     };
17   modifier_map Mod5   { ISO_Level3_Shift };
18 };
19
20 // Right Alt key never chooses 3rd level.
21 // This option attempts to undo the effect of a layout's
22 // including ralt_switch.  You may also want to select another
23 // level3 option that maps the level3 shift to some other key.
24 partial modifier_keys
25 xkb_symbols "ralt_alt" {
26   key <RALT> { 
27     type[Group1]="TWO_LEVEL",
28     type[Group2]="TWO_LEVEL",
29     type[Group3]="TWO_LEVEL",
30     type[Group4]="TWO_LEVEL",
31     symbols[Group1] = [ Alt_R, Meta_R ], 
32     symbols[Group2] = [ Alt_R, Meta_R ], 
33     symbols[Group3] = [ Alt_R, Meta_R ], 
34     symbols[Group4] = [ Alt_R, Meta_R ]
35     };
36   modifier_map Mod1    { <RALT> };
37 };
38
39 partial modifier_keys
40 xkb_symbols "ralt_switch_multikey" {
41   key <RALT> {
42     type[Group1]="TWO_LEVEL",
43     symbols[Group1] = [ ISO_Level3_Shift, Multi_key ]
44     };
45 };
46
47 // special case or right Alt switch - for use with grp:alts_toggle
48 //
49 partial hidden modifier_keys
50 xkb_symbols "ralt_switch_for_alts_toggle" {
51   key <LALT> {
52     type[Group1]="PC_SYSRQ",
53     symbols[Group1] = [ Alt_L,  ISO_Prev_Group,  ISO_Prev_Group ]
54   };
55   key <RALT> {
56     type[Group1]="PC_ALT_LEVEL2",
57     symbols[Group1] = [ ISO_Level3_Shift, ISO_Next_Group ],
58     virtualMods= AltGr
59   };
60   modifier_map Mod5   { ISO_Level3_Shift };
61 };
62
63 // using the level(alt_switch) map, either Alt key temporarily chooses
64 // the third shift level.  (Mostly be used to imitate Mac OS functionality.)
65 partial modifier_keys
66 xkb_symbols "alt_switch" {
67   include "level3(lalt_switch)"
68   include "level3(ralt_switch)"
69 };
70
71 partial modifier_keys
72 xkb_symbols "lalt_switch" {
73   key <LALT> {
74     type[Group1]="ONE_LEVEL",
75     symbols[Group1] = [ ISO_Level3_Shift ]
76     };
77   modifier_map Mod5   { <LALT> };
78 };
79
80 // using the level(switch) map, the right Control key temporarily
81 // chooses the third shift level (until it is released).
82 partial modifier_keys
83 xkb_symbols "switch" {
84   key <RCTL> {
85     type[Group1]="ONE_LEVEL",
86     symbols[Group1] = [ ISO_Level3_Shift ]
87     };
88   modifier_map Mod5   { ISO_Level3_Shift };
89 };
90
91 // using the level(menu_switch) map, the Menu key temporarily
92 // chooses the third shift level (until it is released).
93 partial modifier_keys
94 xkb_symbols "menu_switch" {
95   key <MENU> {
96     type[Group1]="ONE_LEVEL",
97     symbols[Group1] = [ ISO_Level3_Shift ]
98     };
99   modifier_map Mod5   { ISO_Level3_Shift };
100 };
101
102 // using the level3(win_switch) map, the either Windows' logo key
103 // temporarily chooses the third shift level.
104 partial modifier_keys
105 xkb_symbols "win_switch" {
106   include "level3(lwin_switch)"
107   include "level3(rwin_switch)"
108 };
109
110 // using the level3(lwin_switch) map, the left Windows' logo key
111 // temporarily chooses the third shift level.
112 partial modifier_keys
113 xkb_symbols "lwin_switch" {
114   key <LWIN> {
115     type[Group1]="ONE_LEVEL",
116     symbols[Group1] = [ ISO_Level3_Shift ]
117     };
118   modifier_map Mod5   { ISO_Level3_Shift };
119 };
120
121 // using the level(rwin_switch) map, the right Windows' logo key
122 // temporarily chooses the third shift level.  If you use this map,
123 // you should define your keyboard as pc101 or pc102 instead of pc104
124 // or pc105.
125 partial modifier_keys
126 xkb_symbols "rwin_switch" {
127   key <RWIN> {
128     type[Group1]="ONE_LEVEL",
129     symbols[Group1] = [ ISO_Level3_Shift ]
130     };
131   modifier_map Mod5   { ISO_Level3_Shift };
132 };
133
134 // using the level3(enter_switch) map, the Enter key on the keypad
135 // temporarily chooses the third shift level.  This is especially
136 // useful for Mac laptops which miss the right Alt key.
137 partial hidden modifier_keys
138 xkb_symbols "enter_switch" {
139   key <KPEN> {
140     type[Group1]="ONE_LEVEL",
141     symbols[Group1] = [ ISO_Level3_Shift ]
142     };
143   modifier_map Mod5   { ISO_Level3_Shift };
144 };