[Y-devel] Key mappings

Alexey Boyko smartly at gala.net
Thu Feb 26 09:01:42 GMT 2004


>  2) the mapping from modifier + key -> character is also device dependent
>     (in the uk, shift+2 is ", in the us, it is @).

;) On russian keyboards in latin mode shift+2 is @, in cyrillic mode it is "

>    LoadModule "driver/input/evdev" keymap=gb
> Any thoughts?

My proposal is split input module into physical layer module, which convert 
physical kycodes into uniform keycodes, and logical layer module, which 
convert uniform keycodes into characters.

Physical module depends from hardware on which it working on.
Logical module process keymapping for different languages. For simple 
keymapping, where one key - one character it can be universal. For complex 
input languages it can be other. Or it can more powerful, and process all 
languages. 

There is one problem for complex languages: each widget, which take input, 
must store list of typed keys for determining which character is entered. 
(character is entered by several keystrokes), because input focus may change 
between characters.




More information about the Y-devel mailing list









2026 © www.Y-Windows.Org - All Rights Reserved