[comp.windows.x] KeySym

coop@cerc.wvu.wvnet.edu (Cooperate) (03/20/91)

Hi,

	I need some background information on keyboard mapping and keysym.
I want to know if there is any rule for keyboard mapping and if there is,
is there any corelation between keyboard mapping on different machines( DEC,
SGI, SUN , HP) so that I can translate the keypress event from one server
to be understood by another server. Thanks in advance.

klee@wsl.dec.com (Ken Lee) (03/20/91)

In article <1462@babcock.cerc.wvu.wvnet.edu>, coop@cerc.wvu.wvnet.edu (Cooperate) writes:
|> 	I need some background information on keyboard mapping and keysym.
|> I want to know if there is any rule for keyboard mapping and if there is,
|> is there any corelation between keyboard mapping on different machines( DEC,
|> SGI, SUN , HP) so that I can translate the keypress event from one server
|> to be understood by another server.

KeySyms are device-independent and should be valid for any hardware.
KeyCodes, on the other hand, are device-dependent, so you should try
hard not to use them.  X provides KeyCode to KeySym translation
functions so clients should not have to work with KeyCodes.

-- 
Ken Lee
DEC Western Software Laboratory, Palo Alto, Calif.
Internet: klee@wsl.dec.com
uucp: uunet!decwrl!klee