ONE_LEVEL fixing by Frank
[xorg/xkeyboard-config] / symbols / level3
1 // these variants assign various XKB keycodes to ISO_Level3_Shift so that
2 // the third shift level can be reached
3 //
4 // $XFree86: xc/programs/xkbcomp/symbols/level3,v 1.7 2003/09/08 14:25:32 eich Exp $
5 //
6
7 // the default behavior is for the right Alt key (AltGr) to generate the
8 // third engraved symbol
9 default partial modifier_keys
10 xkb_symbols "ralt_switch" {
11   key <RALT> {
12     type[Group1]="ONE_LEVEL",
13     symbols[Group1] = [ ISO_Level3_Shift ]
14     };
15   modifier_map Mod5   { ISO_Level3_Shift };
16 };
17
18 // using the level(alt_switch) map, either Alt key temporarily chooses
19 // the third shift level.  (Mostly be used to imitate Mac OS functionality.)
20 partial modifier_keys
21 xkb_symbols "alt_switch" {
22   include "level3(lalt_switch)"
23   include "level3(ralt_switch)"
24 };
25
26 partial modifier_keys
27 xkb_symbols "lalt_switch" {
28   key <LALT> {
29     type[Group1]="ONE_LEVEL",
30     symbols[Group1] = [ ISO_Level3_Shift ]
31     };
32   modifier_map Mod5   { ISO_Level3_Shift };
33 };
34
35 // using the level(switch) map, the right Control key temporarily
36 // chooses the third shift level (until it is released).
37 partial modifier_keys
38 xkb_symbols "switch" {
39   key <RCTL> {
40     type[Group1]="ONE_LEVEL",
41     symbols[Group1] = [ ISO_Level3_Shift ]
42     };
43   modifier_map Mod5   { ISO_Level3_Shift };
44 };
45
46 // using the level(menu_switch) map, the Menu key temporarily
47 // chooses the third shift level (until it is released).
48 partial modifier_keys
49 xkb_symbols "menu_switch" {
50   key <MENU> {
51     type[Group1]="ONE_LEVEL",
52     symbols[Group1] = [ ISO_Level3_Shift ]
53     };
54   modifier_map Mod5   { ISO_Level3_Shift };
55 };
56
57 // using the level(win_switch) map, the either Windows' logo key
58 // temporarily chooses the third shift level.  If you use this map,
59 // you should define your keyboard as pc101 or pc102 instead of pc104
60 // or pc105.
61 partial modifier_keys
62 xkb_symbols "win_switch" {
63   include "level3(lwin_switch)"
64   include "level3(rwin_switch)"
65 };
66
67 // using the level(lwin_switch) map, the left Windows' logo key
68 // temporarily chooses the third shift level.  If you use this map,
69 // you should define your keyboard as pc101 or pc102 instead of pc104
70 // or pc105.
71 partial modifier_keys
72 xkb_symbols "lwin_switch" {
73   key <LWIN> {
74     type[Group1]="ONE_LEVEL",
75     symbols[Group1] = [ ISO_Level3_Shift ]
76     };
77   modifier_map Mod5   { ISO_Level3_Shift };
78 };
79
80 // using the level(rwin_switch) map, the right Windows' logo key
81 // temporarily chooses the third shift level.  If you use this map,
82 // you should define your keyboard as pc101 or pc102 instead of pc104
83 // or pc105.
84 partial modifier_keys
85 xkb_symbols "rwin_switch" {
86   key <RWIN> {
87     type[Group1]="ONE_LEVEL",
88     symbols[Group1] = [ ISO_Level3_Shift ]
89     };
90   modifier_map Mod5   { ISO_Level3_Shift };
91 };