There should not be dead keys in de(nodeadkeys)
[xorg/xkeyboard-config] / compat / japan
1 // Japanese keyboards need Eisu and Kana shift and 
2 // lock keys, which are typically bound to the
3 // second shift level for some other modifier key.
4 // These interpretations disable the default
5 // interpretation (which would have these keys set
6 // the same modifier as the level one symbol).
7
8 default partial xkb_compatibility "japan"  {
9
10     interpret.repeat= False;
11
12     interpret Eisu_Shift+Lock {
13         action= NoAction();
14     };
15
16     interpret Eisu_toggle+Lock {
17         action= NoAction();
18     };
19
20     interpret Kana_Shift+Lock {
21         action= NoAction();
22     };
23
24     interpret Kana_Lock+Lock {
25         action= NoAction();
26     };
27 };
28
29 // Some Japanese keyboards have an explict Kana Lock key & matching LED
30
31 partial xkb_compatibility "kana_lock"  {
32
33     virtual_modifiers Kana_Lock;
34
35     interpret Kana_Lock+AnyOfOrNone(all) {
36         virtualModifier= Kana_Lock;
37         useModMapMods=level1;
38         action= LockGroup(group=+1);
39     };
40
41     indicator "Kana" {
42         !allowExplicit;
43         groups= All-Group1;
44     };
45 };