Package: skkinput
Version: 1:2.06.4-1

I tend to hit shift-space by mistake rather too often, so I wanted to move
the start-conversion key combination to Windows-space instead. (I have the
Windows key mapped as X modifier 4, aka 'Hyper'.) So I put this in my
X resources:

Skkinput.xim.conversionStartKey: mod4<Key>space

However, skkinput doesn't recognise 'mod4', only 'shift', 'cntrl', 'lock'
and 'mod1'. The following patch fixes this.

--- skkinput-2.06.4/parseStr.c  2002-06-29 05:48:46.000000000 +0100
+++ skkinput-2.06.4-mod/parseStr.c      2005-10-16 23:03:49.000000000 +0100
@@ -96,6 +96,8 @@
   static struct keyToMask key_masks[] = {
     { "shift",   ShiftMask   }, { "lock", LockMask },
     { "cntrl", ControlMask }, { "mod1", Mod1Mask },
+    { "mod2", Mod2Mask }, { "mod3", Mod3Mask },
+    { "mod4", Mod4Mask }, { "mod5", Mod5Mask },
     { NULL,      0L          },
   } ;
   struct keyToMask *kptr ;

(If you want to test this and you don't have your keyboard set up with
a Mod4 key then

xmodmap -e 'keycode 115 = Hyper_L' -e 'clear Mod4' -e 'add Mod4 = Hyper_L'

will hopefully set up the left Windows key as one, assuming you have
a standard PC keyboard. Probably best to check that with xev.)

Hope this helps.
-- PMM


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to