assign action for keysym Shift_L by default
[xorg/xkeyboard-config] / compat / misc
1 // $XdotOrg: xc/programs/xkbcomp/compat/misc,v 1.1.4.4 2004/03/05 13:41:28 eich Exp $
2 // $Xorg: misc,v 1.3 2000/08/17 19:54:34 cpqbld Exp $
3 //
4 //
5 //
6 // $XFree86: xc/programs/xkbcomp/compat/misc,v 1.4 2003/05/15 13:31:57 pascal Exp $
7
8 default partial xkb_compatibility "misc"  {
9
10     virtual_modifiers   Alt,Meta,Super,Hyper,ScrollLock;
11
12     // Interpretations for some other useful keys
13
14     interpret Terminate_Server {
15         action = Terminate();
16     };
17
18     setMods.clearLocks= True;
19
20     // Sets the "Alt" virtual modifier
21
22     interpret Alt_L+Any     {
23         //useModMapMods= level1;
24         virtualModifier= Alt;
25         action = SetMods(modifiers=modMapMods);
26     };
27
28     interpret Alt_L     {
29         action = SetMods(modifiers=Alt);
30     };
31
32     interpret Alt_R+Any     {
33         //useModMapMods= level1;
34         virtualModifier= Alt;
35         action = SetMods(modifiers=modMapMods);
36     };
37
38     interpret Alt_R     {
39         action = SetMods(modifiers=Alt);
40     };
41
42     // Sets the "Meta" virtual modifier
43
44     interpret Meta_L+Any     {
45 //        useModMapMods= level1;
46         virtualModifier= Meta;
47         action = SetMods(modifiers=modMapMods);
48     };
49
50     interpret Meta_L    {
51         action = SetMods(modifiers=Meta);
52     };
53
54     interpret Meta_R+Any     {
55         //useModMapMods= level1;
56         virtualModifier= Meta;
57         action = SetMods(modifiers=modMapMods);
58     };
59
60     interpret Meta_R    {
61         action = SetMods(modifiers=Meta);
62     };
63
64     // Sets the "Super" virtual modifier
65
66     interpret Super_L+Any     {
67 //        useModMapMods= level1;
68         virtualModifier= Super;
69         action = SetMods(modifiers=modMapMods);
70     };
71
72     interpret Super_L   {
73         action = SetMods(modifiers=Super);
74     };
75
76     interpret Super_R+Any     {
77         //useModMapMods= level1;
78         virtualModifier= Super;
79         action = SetMods(modifiers=modMapMods);
80     };
81
82     interpret Super_R   {
83         action = SetMods(modifiers=Super);
84     };
85
86     // Sets the "Hyper" virtual modifier
87
88     interpret Hyper_L+Any     {
89 //        useModMapMods= level1;
90         virtualModifier= Hyper;
91         action = SetMods(modifiers=modMapMods);
92     };
93
94     interpret Hyper_L   {
95         action = SetMods(modifiers=Hyper);
96     };
97
98     interpret Hyper_R+Any     {
99         //useModMapMods= level1;
100         virtualModifier= Hyper;
101         action = SetMods(modifiers=modMapMods);
102     };
103
104     interpret Hyper_R   {
105         action = SetMods(modifiers=Hyper);
106     };
107
108     // Sets the "ScrollLock" virtual modifier and
109     // makes it actually lock when pressed.  Sets
110     // up a map for the scroll lock indicator.
111     interpret Scroll_Lock+Any   {
112         virtualModifier= ScrollLock;
113         action = LockMods(modifiers=modMapMods);
114     };
115
116     include "ledscroll"
117         
118     include "misc(assign_shift_left_action)"
119 };
120
121 partial xkb_compatibility "assign_shift_left_action"  {
122     // Because of the irrevertable modifier mapping in symbols/pc <LFSH> is 
123     // getting bound to the Lock modifier when using 
124     // symbols/shift(both_capslock), creating unwanted behaviour. 
125     // This is a quirk, to circumvent the problem.
126     interpret Shift_L {
127         action = SetMods(modifiers = Shift);
128     };
129 };