Reference

XGetModifierMapping(3) on Linux

The text f90e58f76253, as Debian 5.0 (Lenny) shipped it.

manipulate keyboard encoding and keyboard encoding structure

XGetModifierMapping(3) on Linux now