summaryrefslogtreecommitdiff
path: root/compat/xtest
diff options
context:
space:
mode:
authorsvu <svu>2004-04-10 02:08:51 +0000
committersvu <svu>2004-04-10 02:08:51 +0000
commit9bbda6bfbcc29a575ea3b5cb7bd2553767e80d53 (patch)
tree8bc7094a3bc1cd14e8c652d0f4669f3371f80407 /compat/xtest
parentcfecfecb04a7c73bdd79e659b1d4f1192593ce8c (diff)
downloadxkeyboard-config-9bbda6bfbcc29a575ea3b5cb7bd2553767e80d53.tar.gz
first feed-in of the layouts. The revolution is coming
Diffstat (limited to 'compat/xtest')
-rw-r--r--compat/xtest58
1 files changed, 58 insertions, 0 deletions
diff --git a/compat/xtest b/compat/xtest
new file mode 100644
index 0000000..a35ced9
--- /dev/null
+++ b/compat/xtest
@@ -0,0 +1,58 @@
+// $Xorg: xtest,v 1.3 2000/08/17 19:54:34 cpqbld Exp $
+default xkb_compatibility "xtest" {
+
+ // Minimal set of symbol interpretations to provide
+ // reasonable behavior for testing. The X Test
+ // Suite assumes that it can set any modifier by
+ // simulating a KeyPress and clear it by simulating
+ // a KeyRelease. Because of the way that XKB
+ // implements locking/latching modifiers, this
+ // approach fails in some cases (typically the
+ // lock or num lock modifiers). These symbol
+ // interpretations make all modifier keys just
+ // set the corresponding modifier so that xtest
+ // will see the behavior it expects.
+
+ virtual_modifiers NumLock,AltGr;
+
+ interpret.repeat= False;
+ setMods.clearLocks= True;
+ latchMods.clearLocks= True;
+ latchMods.latchToLock= False;
+
+ interpret Shift_Lock+AnyOf(Shift+Lock) {
+ action= SetMods(modifiers=Shift);
+ };
+
+ interpret Num_Lock+Any {
+ virtualModifier= NumLock;
+ action= SetMods(modifiers=NumLock);
+ };
+
+ interpret Mode_switch {
+ useModMapMods= level1;
+ virtualModifier= AltGr;
+ action= SetGroup(group=2);
+ };
+
+ interpret Any + Any {
+ action= SetMods(modifiers=modMapMods);
+ };
+
+ group 2 = AltGr;
+ group 3 = AltGr;
+ group 4 = AltGr;
+
+ indicator.allowExplicit= False;
+ indicator "Caps Lock" {
+ modifiers= Lock;
+ };
+ indicator "Num Lock" {
+ modifiers= NumLock;
+ };
+ indicator "Shift Lock" {
+ whichModState= Locked;
+ modifiers= Shift;
+ };
+ indicator.allowExplicit= True;
+};