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