1797b363dSmrgdefault xkb_compatibility "xtest" {
2154daed1Smrg
3154daed1Smrg    // Minimal set of symbol interpretations to provide
4797b363dSmrg    // reasonable behavior for testing.
5797b363dSmrg    // The X Test Suite assumes that it can set any modifier
6797b363dSmrg    // by simulating a KeyPress and clear it by simulating a
7797b363dSmrg    // KeyRelease.  Because of the way that XKB implements
8797b363dSmrg    // locking/latching modifiers, this approach fails in
9797b363dSmrg    // some cases (typically the Lock or NumLock modifiers).
10797b363dSmrg    // These symbol interpretations make all modifier keys
11797b363dSmrg    // just set the corresponding modifier so that xtest
12154daed1Smrg    // will see the behavior it expects.
13154daed1Smrg
1446185892Smrg    virtual_modifiers  NumLock;
15154daed1Smrg
16154daed1Smrg    interpret.repeat= False;
17154daed1Smrg    setMods.clearLocks= True;
18154daed1Smrg    latchMods.clearLocks= True;
19154daed1Smrg    latchMods.latchToLock= False;
20154daed1Smrg
21154daed1Smrg    interpret Shift_Lock+AnyOf(Shift+Lock) {
22154daed1Smrg	action= SetMods(modifiers=Shift);
23154daed1Smrg    };
24154daed1Smrg
25154daed1Smrg    interpret Num_Lock+Any {
26154daed1Smrg	virtualModifier= NumLock;
27154daed1Smrg	action= SetMods(modifiers=NumLock);
28154daed1Smrg    };
29154daed1Smrg
30154daed1Smrg    interpret Mode_switch {
31154daed1Smrg	action= SetGroup(group=2);
32154daed1Smrg    };
33154daed1Smrg
34154daed1Smrg    interpret Any + Any {
35154daed1Smrg	action= SetMods(modifiers=modMapMods);
36154daed1Smrg    };
37154daed1Smrg
3846185892Smrg    group 2 = Mod5;
3946185892Smrg    group 3 = Mod5;
4046185892Smrg    group 4 = Mod5;
41154daed1Smrg
42154daed1Smrg    indicator.allowExplicit= False;
43797b363dSmrg    indicator "Caps Lock" {
44154daed1Smrg	modifiers= Lock;
45154daed1Smrg    };
46154daed1Smrg    indicator "Num Lock" {
47154daed1Smrg	modifiers= NumLock;
48154daed1Smrg    };
49154daed1Smrg    indicator "Shift Lock" {
50154daed1Smrg	whichModState= Locked;
51154daed1Smrg	modifiers= Shift;
52154daed1Smrg    };
53154daed1Smrg    indicator.allowExplicit= True;
54154daed1Smrg};
55