1 // $Xorg: xtest,v 1.3 2000/08/17 19:54:34 cpqbld Exp $
2 default xkb_compatibility "xtest" {
4 // Minimal set of symbol interpretations to provide
5 // reasonable behavior for testing. The X Test
6 // Suite assumes that it can set any modifier by
7 // simulating a KeyPress and clear it by simulating
8 // a KeyRelease. Because of the way that XKB
9 // implements locking/latching modifiers, this
10 // approach fails in some cases (typically the
11 // lock or num lock modifiers). These symbol
12 // interpretations make all modifier keys just
13 // set the corresponding modifier so that xtest
14 // will see the behavior it expects.
16 virtual_modifiers NumLock,AltGr;
18 interpret.repeat= False;
19 setMods.clearLocks= True;
20 latchMods.clearLocks= True;
21 latchMods.latchToLock= False;
23 interpret Shift_Lock+AnyOf(Shift+Lock) {
24 action= SetMods(modifiers=Shift);
27 interpret Num_Lock+Any {
28 virtualModifier= NumLock;
29 action= SetMods(modifiers=NumLock);
32 interpret Mode_switch {
33 useModMapMods= level1;
34 virtualModifier= AltGr;
35 action= SetGroup(group=2);
39 action= SetMods(modifiers=modMapMods);
46 indicator.allowExplicit= False;
47 indicator "Caps Lock" {
50 indicator "Num Lock" {
53 indicator "Shift Lock" {
54 whichModState= Locked;
57 indicator.allowExplicit= True;