From 93fd80a5a94f6cdc1c8bb6e1614bad622b3b9bd1 Mon Sep 17 00:00:00 2001 From: svu Date: Sun, 26 Feb 2006 03:33:08 +0000 Subject: huge update from Sun --- compat/japan | 19 +++++++++++++++++++ compat/mousekeys | 23 +++++++++++++++++++++++ compat/xorg | 11 +++++++++++ 3 files changed, 53 insertions(+) create mode 100644 compat/xorg (limited to 'compat') diff --git a/compat/japan b/compat/japan index 34bcc09..00187d0 100644 --- a/compat/japan +++ b/compat/japan @@ -27,3 +27,22 @@ default partial xkb_compatibility "japan" { action= NoAction(); }; }; + +// Some Japanese keyboards have an explict Kana Lock key & matching LED + +partial xkb_compatibility "kana_lock" { + + virtual_modifiers Kana_Lock; + + interpret Kana_Lock+AnyOfOrNone(all) { + virtualModifier= Kana_Lock; + useModMapMods=level1; + action= LockGroup(group=+1); + }; + + indicator "Kana" { + !allowExplicit; + groups= All-Group1; + }; +}; + diff --git a/compat/mousekeys b/compat/mousekeys index 6e9a208..fbd2b88 100644 --- a/compat/mousekeys +++ b/compat/mousekeys @@ -117,6 +117,29 @@ default partial xkb_compatibility "mousekeys" { action = LockPointerButton(button=default,affect=unlock); }; + // Additional mappings for Solaris keypad compatibility + interpret F25 { // aka KP_Divide + action = SetPtrDflt(affect=defaultButton,button=1); + }; + interpret F26 { // aka KP_Multiply + action = SetPtrDflt(affect=defaultButton,button=2); + }; + interpret F27 { // aka KP_Home + action = MovePtr(x=-1,y=-1); + }; + interpret F29 { // aka KP_Prior + action = MovePtr(x=+1,y=-1); + }; + interpret F31 { // aka KP_Begin + action = PointerButton(button=default); + }; + interpret F33 { // aka KP_End + action = MovePtr(x=-1,y= +1); + }; + interpret F35 { // aka KP_Next + action = MovePtr(x=+1,y=+1); + }; + interpret.repeat= False; diff --git a/compat/xorg b/compat/xorg new file mode 100644 index 0000000..310f86d --- /dev/null +++ b/compat/xorg @@ -0,0 +1,11 @@ +// +// $XKeyboardConfig$ +// Misc optional compat things +// + +default partial xkb_compatibility "lctrl_group1" { + interpret Control_L+Any { + action = SetMods(modifiers=ModMapMods,clearLocks); + //action = LatchGroup(group=1,!clearLocks,!latchToLock); + }; +}; -- cgit v1.2.1