[PATCH] NumLock/CapsLock masks in Thai XIM

Theppitak Karoonboonyanan thep at linux.thai.net
Wed Dec 12 23:16:57 PST 2007


On Dec 13, 2007 1:10 PM, Theppitak Karoonboonyanan <thep at linux.thai.net> wrote:
> Mod5 is mapped for AltGr on Linux. And it should also be passed to the XIM,
> like NumLock. So, it should be OK to add Mod5Mask to the list as well.
>
> However, is this assumption reliable? In summary, the masks that should
> be passed to the sequence checking routine are Shift, CapsLock, NumLock,
> and AltGr. And the known mappings are:
>
> bin. Macro       Linux     AIX      Operation
> ---- ----------- --------- -------- ---------
> 0x01 ShiftMask   Shift     Shift    Pass
> 0x02 LockMask    CapsLock  CapsLock Pass
> 0x04 ControlMask Ctrl      Ctrl     Block
> 0x08 Mod1Mask    Alt       Alt(?)   Block
> 0x10 Mod2Mask    NumLock   ?        Pass(?)
> 0x20 Mod3Mask    ?         ?        ?
> 0x40 Mod4Mask    Win       ?        Block(?)
> 0x80 Mod5Mask    AltGr     NumLock  Pass

Instead of listing what's to be excluded from the masks,
I list what's to be included instead. So, we now specify that
we need to block Control, Mod1/Alt, Mod4/Win modifiers
from entering the sequence checking routine.

-- 
Theppitak Karoonboonyanan
http://linux.thai.net/~thep/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 023_thai-im-filter.diff
Type: text/x-patch
Size: 662 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg/attachments/20071213/471a9be2/attachment.bin>


More information about the xorg mailing list