xref: /aosp_15_r20/external/libxkbcommon/test/data/compat/basic (revision 2b949d0487e80d67f1fda82db69e101e761f8064)
1*2b949d04SAndroid Build Coastguard Worker// Minimal set of symbol interpretations to provide
2*2b949d04SAndroid Build Coastguard Worker// reasonable default behavior (Num lock, Shift lock,
3*2b949d04SAndroid Build Coastguard Worker// Caps lock, and Mode switch) and set up the
4*2b949d04SAndroid Build Coastguard Worker// automatic updating of common keyboard LEDs.
5*2b949d04SAndroid Build Coastguard Worker
6*2b949d04SAndroid Build Coastguard Workerdefault xkb_compatibility "basic" {
7*2b949d04SAndroid Build Coastguard Worker
8*2b949d04SAndroid Build Coastguard Worker    virtual_modifiers  NumLock,AltGr;
9*2b949d04SAndroid Build Coastguard Worker
10*2b949d04SAndroid Build Coastguard Worker    interpret.repeat= False;
11*2b949d04SAndroid Build Coastguard Worker    setMods.clearLocks= True;
12*2b949d04SAndroid Build Coastguard Worker    latchMods.clearLocks= True;
13*2b949d04SAndroid Build Coastguard Worker    latchMods.latchToLock= True;
14*2b949d04SAndroid Build Coastguard Worker
15*2b949d04SAndroid Build Coastguard Worker    interpret Shift_Lock+AnyOf(Shift+Lock) {
16*2b949d04SAndroid Build Coastguard Worker	action= LockMods(modifiers=Shift);
17*2b949d04SAndroid Build Coastguard Worker    };
18*2b949d04SAndroid Build Coastguard Worker
19*2b949d04SAndroid Build Coastguard Worker    interpret Any+Lock {
20*2b949d04SAndroid Build Coastguard Worker	action= LockMods(modifiers=Lock);
21*2b949d04SAndroid Build Coastguard Worker    };
22*2b949d04SAndroid Build Coastguard Worker
23*2b949d04SAndroid Build Coastguard Worker    interpret Num_Lock+Any {
24*2b949d04SAndroid Build Coastguard Worker	virtualModifier= NumLock;
25*2b949d04SAndroid Build Coastguard Worker	action= LockMods(modifiers=NumLock);
26*2b949d04SAndroid Build Coastguard Worker    };
27*2b949d04SAndroid Build Coastguard Worker
28*2b949d04SAndroid Build Coastguard Worker    interpret Mode_switch {
29*2b949d04SAndroid Build Coastguard Worker	useModMapMods= level1;
30*2b949d04SAndroid Build Coastguard Worker	virtualModifier= AltGr;
31*2b949d04SAndroid Build Coastguard Worker	action= SetGroup(group=+1);
32*2b949d04SAndroid Build Coastguard Worker    };
33*2b949d04SAndroid Build Coastguard Worker
34*2b949d04SAndroid Build Coastguard Worker    interpret Any + Any {
35*2b949d04SAndroid Build Coastguard Worker	action= SetMods(modifiers=modMapMods);
36*2b949d04SAndroid Build Coastguard Worker    };
37*2b949d04SAndroid Build Coastguard Worker
38*2b949d04SAndroid Build Coastguard Worker    group 2 = AltGr;
39*2b949d04SAndroid Build Coastguard Worker    group 3 = AltGr;
40*2b949d04SAndroid Build Coastguard Worker    group 4 = AltGr;
41*2b949d04SAndroid Build Coastguard Worker
42*2b949d04SAndroid Build Coastguard Worker    include "ledcaps"
43*2b949d04SAndroid Build Coastguard Worker    include "lednum"
44*2b949d04SAndroid Build Coastguard Worker    indicator "Shift Lock" {
45*2b949d04SAndroid Build Coastguard Worker	!allowExplicit;
46*2b949d04SAndroid Build Coastguard Worker	whichModState= Locked;
47*2b949d04SAndroid Build Coastguard Worker	modifiers= Shift;
48*2b949d04SAndroid Build Coastguard Worker    };
49*2b949d04SAndroid Build Coastguard Worker};
50