File: caps

package info (click to toggle)
libxkbcommon 1.13.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,344 kB
  • sloc: ansic: 57,807; xml: 8,905; python: 7,451; yacc: 913; sh: 253; makefile: 23
file content (32 lines) | stat: -rw-r--r-- 1,066 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
partial xkb_compatibility "caps_lock" {
    // Keysym Caps_Lock locks the Lock modifier.
    // With this definition, the keysym Caps_Lock can be used without binding
    // the whole key to a real modifier.  This is essential when you don't
    // want to use Caps_Lock on the first level.
    // This should not have any compatibility issues when used together with
    // other layouts which don't utilize this capability.
    interpret Caps_Lock {
        action = LockMods(modifiers = Lock);
    };
};

partial xkb_compatibility "unlock-on-release" {
    interpret Caps_Lock {
        action = LockMods(modifiers = Lock, unlockOnPress=false);
    };

    interpret.repeat= False;
    interpret Caps_Lock + Lock {
        action = LockMods(modifiers = Lock, unlockOnPress=false);
    };
};

partial xkb_compatibility "unlock-on-press" {
    interpret Caps_Lock {
        action = LockMods(modifiers = Lock, unlockOnPress);
    };
    interpret.repeat= False;
    interpret Caps_Lock + Lock {
        action = LockMods(modifiers = Lock, unlockOnPress);
    };
};