misc revision c067fea9
1154daed1Smrg// $XdotOrg: xc/programs/xkbcomp/compat/misc,v 1.1.4.4 2004/03/05 13:41:28 eich Exp $
2154daed1Smrg// $Xorg: misc,v 1.3 2000/08/17 19:54:34 cpqbld Exp $
3154daed1Smrg//
4154daed1Smrg//
5154daed1Smrg//
6154daed1Smrg// $XFree86: xc/programs/xkbcomp/compat/misc,v 1.4 2003/05/15 13:31:57 pascal Exp $
7154daed1Smrg
8154daed1Smrgdefault partial xkb_compatibility "misc"  {
9154daed1Smrg
10154daed1Smrg    virtual_modifiers	Alt,Meta,Super,Hyper,ScrollLock;
11154daed1Smrg
12154daed1Smrg    // Interpretations for some other useful keys
13154daed1Smrg
14154daed1Smrg    interpret Terminate_Server {
15154daed1Smrg        action = Terminate();
16154daed1Smrg    };
17154daed1Smrg
18154daed1Smrg    setMods.clearLocks= True;
19154daed1Smrg
20154daed1Smrg    // Sets the "Alt" virtual modifier
21154daed1Smrg
22154daed1Smrg    interpret Alt_L+Any     {
23154daed1Smrg        //useModMapMods= level1;
24154daed1Smrg	virtualModifier= Alt;
25154daed1Smrg	action = SetMods(modifiers=modMapMods);
26154daed1Smrg    };
27154daed1Smrg
28154daed1Smrg    interpret Alt_L	{
29154daed1Smrg	action = SetMods(modifiers=Alt);
30154daed1Smrg    };
31154daed1Smrg
32154daed1Smrg    interpret Alt_R+Any     {
33154daed1Smrg        //useModMapMods= level1;
34154daed1Smrg	virtualModifier= Alt;
35154daed1Smrg	action = SetMods(modifiers=modMapMods);
36154daed1Smrg    };
37154daed1Smrg
38154daed1Smrg    interpret Alt_R	{
39154daed1Smrg	action = SetMods(modifiers=Alt);
40154daed1Smrg    };
41154daed1Smrg
42154daed1Smrg    // Sets the "Meta" virtual modifier
43154daed1Smrg
44154daed1Smrg    interpret Meta_L+Any     {
45154daed1Smrg//        useModMapMods= level1;
46154daed1Smrg	virtualModifier= Meta;
47154daed1Smrg	action = SetMods(modifiers=modMapMods);
48154daed1Smrg    };
49154daed1Smrg
50154daed1Smrg    interpret Meta_L	{
51154daed1Smrg	action = SetMods(modifiers=Meta);
52154daed1Smrg    };
53154daed1Smrg
54154daed1Smrg    interpret Meta_R+Any     {
55154daed1Smrg        //useModMapMods= level1;
56154daed1Smrg	virtualModifier= Meta;
57154daed1Smrg	action = SetMods(modifiers=modMapMods);
58154daed1Smrg    };
59154daed1Smrg
60154daed1Smrg    interpret Meta_R	{
61154daed1Smrg	action = SetMods(modifiers=Meta);
62154daed1Smrg    };
63154daed1Smrg
64154daed1Smrg    // Sets the "Super" virtual modifier
65154daed1Smrg
66154daed1Smrg    interpret Super_L+Any     {
67154daed1Smrg//        useModMapMods= level1;
68154daed1Smrg	virtualModifier= Super;
69154daed1Smrg	action = SetMods(modifiers=modMapMods);
70154daed1Smrg    };
71154daed1Smrg
72154daed1Smrg    interpret Super_L	{
73154daed1Smrg	action = SetMods(modifiers=Super);
74154daed1Smrg    };
75154daed1Smrg
76154daed1Smrg    interpret Super_R+Any     {
77154daed1Smrg        //useModMapMods= level1;
78154daed1Smrg	virtualModifier= Super;
79154daed1Smrg	action = SetMods(modifiers=modMapMods);
80154daed1Smrg    };
81154daed1Smrg
82154daed1Smrg    interpret Super_R	{
83154daed1Smrg	action = SetMods(modifiers=Super);
84154daed1Smrg    };
85154daed1Smrg
86154daed1Smrg    // Sets the "Hyper" virtual modifier
87154daed1Smrg
88154daed1Smrg    interpret Hyper_L+Any     {
89154daed1Smrg//        useModMapMods= level1;
90154daed1Smrg	virtualModifier= Hyper;
91154daed1Smrg	action = SetMods(modifiers=modMapMods);
92154daed1Smrg    };
93154daed1Smrg
94154daed1Smrg    interpret Hyper_L	{
95154daed1Smrg	action = SetMods(modifiers=Hyper);
96154daed1Smrg    };
97154daed1Smrg
98154daed1Smrg    interpret Hyper_R+Any     {
99154daed1Smrg        //useModMapMods= level1;
100154daed1Smrg	virtualModifier= Hyper;
101154daed1Smrg	action = SetMods(modifiers=modMapMods);
102154daed1Smrg    };
103154daed1Smrg
104154daed1Smrg    interpret Hyper_R	{
105154daed1Smrg	action = SetMods(modifiers=Hyper);
106154daed1Smrg    };
107154daed1Smrg
108154daed1Smrg    // Sets the "ScrollLock" virtual modifier and
109154daed1Smrg    // makes it actually lock when pressed.  Sets
110154daed1Smrg    // up a map for the scroll lock indicator.
111154daed1Smrg    interpret Scroll_Lock+Any	{
112154daed1Smrg	virtualModifier= ScrollLock;
113154daed1Smrg	action = LockMods(modifiers=modMapMods);
114154daed1Smrg    };
115154daed1Smrg
116154daed1Smrg    include "ledscroll"
117154daed1Smrg};
118c067fea9Sghen
119c067fea9Sghenpartial xkb_compatibility "assign_shift_left_action"  {
120c067fea9Sghen    // Because of the irrevertable modifier mapping in symbols/pc <LFSH> is 
121c067fea9Sghen    // getting bound to the Lock modifier when using 
122c067fea9Sghen    // symbols/shift(both_capslock), creating unwanted behaviour. 
123c067fea9Sghen    // This is a quirk, to circumvent the problem.
124c067fea9Sghen    interpret Shift_L {
125c067fea9Sghen        action = SetMods(modifiers = Shift);
126c067fea9Sghen    };
127c067fea9Sghen};
128