Re: [gtk-vnc-devel] [PATCH][RFC] Support for ExtendedKeyEvent client message



Gerd Hoffmann wrote:
  Hi,

The Linux input layer key codes are unique. That is, KEY_A should alway represent an 'a' key press regardless of the keyboard

No.  The KEY_* input layer codes don't change when you change the
keyboard mapping.  KEY_Y means "the key between T and U", which actually
represents 'y' with an us keyboard mapping, but if I load a german one
it is 'z'.

Ah, I see. I still think PC key codes are a bit saner though as it's relatively easy for platforms to get them whereas everything would have to convert to Linux keycodes.

Regards,

Anthony Liguori

cheers,

  Gerd







[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]