[Y-devel] keyboard layouts (continued)
Alexey Boyko smartly at gala.net
Sat Feb 28 13:19:08 GMT 2004
The next.
I have thinks what to do with Shift key, because it affects generated
characters, but describing behavior in keymap file makes it too complicated.
And I have decide, that keycodes, which reaches key tree must be already
shifted. For example, keymap module must distinguish key 'a' from key 'A',
and generate different characters.
So I see following keyboard input infrastructure.
+-----------------+
| Keyboard Module |
+-----------------+
|
+-----------------------+---------------------------------------+
| | |
| V V
| +-------------------------------+ +-------------------------------+
| | Shortcut Module. Converts | | Shift module. Processes |
| | shortcuts like Ctrl+C/Ctrl+V | | Shift and Caps Lock keys. |
| | into something like | +-------------------------------+
| | YK_Cut/YK_Paste | |
| +-------------------------------+ V
| | +-------------------------------+
| | | Character map module. |
+-------+---------------+ | Converts key pressing into |
| | characters |
V +-------------------------------+
Goes into application |
as key press/release V
events Goes into application as typed
characters events.
Keyboard module can be different on different platforms. It can be drived by
it own maps, which can be different on different keyboards, for example
qwerty/dvorak or maps additional keys on multimedia keyboards.
Shortcut module also may have different maps, and must have way to easy
modifying by user. May be shortcut maps must be stored for each client
separately (or better for each connected host)
Character map module must have access to widget data, where it stores input
context.
Am I missing something?
More information about the Y-devel mailing list
2026 © www.Y-Windows.Org - All Rights Reserved