diff options
author | marha <marha@users.sourceforge.net> | 2010-07-13 07:35:01 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2010-07-13 07:35:01 +0000 |
commit | 81124070f120ab658e094b64f6944d701b003a99 (patch) | |
tree | 735e49473d8c4545e39cf98981e3dcdfd70760f9 /xorg-server/xkeyboard-config/compat/xtest | |
parent | f2388fcb82e72ee921139e9a4c8f9223e4ae04cd (diff) | |
download | vcxsrv-81124070f120ab658e094b64f6944d701b003a99.tar.gz vcxsrv-81124070f120ab658e094b64f6944d701b003a99.tar.bz2 vcxsrv-81124070f120ab658e094b64f6944d701b003a99.zip |
Renamed xkbdata.src to xkeyboard-config (to reflect the name in the git repository)
Diffstat (limited to 'xorg-server/xkeyboard-config/compat/xtest')
-rw-r--r-- | xorg-server/xkeyboard-config/compat/xtest | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/xorg-server/xkeyboard-config/compat/xtest b/xorg-server/xkeyboard-config/compat/xtest new file mode 100644 index 000000000..a35ced915 --- /dev/null +++ b/xorg-server/xkeyboard-config/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; +}; |