[PATCH] NumLock/CapsLock masks in Thai XIM

Theppitak Karoonboonyanan thep at linux.thai.net
Wed Dec 12 22:10:28 PST 2007


On Wed, Dec 12, 2007 at 10:42:00AM -0600, mcnichol at austin.ibm.com wrote:
> The patch assumes that NumLock is always mapped to Mod2.
> That may not be true on all systems.  I know AIX uses Mod5.

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

Or is there more reliable way to handle this?

Regards,
-- 
Theppitak Karoonboonyanan
http://linux.thai.net/~thep/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.x.org/archives/xorg/attachments/20071213/fd79d39b/attachment.pgp>


More information about the xorg mailing list