[Y-devel] keyboard layouts (continued)

Maurice van der Pot griffon26 at kfk4ever.com
Sun Feb 29 02:10:24 GMT 2004


On Sat, Feb 28, 2004 at 03:19:08PM +0200, Alexey Boyko wrote:
> 
> 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.

I disagree with you on this. If you have a modifier key and you press it
first and then delete it, you will be in the same state as before you 
pressed it. What the modifier key does is temporarily switch between two 
trees. This of course means that multiple trees must have similar shapes, 
but I don't think that is a problem. We can make verifiers that can check
a new keymap for consistency.

I agree with Bryce that limiting modifiers to the standard ones may not
be a good idea, but I also noticed that Macs apparently define certain keys
as modifiers in hardware, meaning that you don't get events for them.

  https://www.geocrawler.com/mail/msg.php3?msg_id=1396785&list=140

This is no problem for the 'multiple trees that you switch between' idea, 
but it does prohibit the use of modifier keys as normal character generating
keys.


What I do not understand is why you would want to split things up into a
shortcut module and a (shift module+)character map module. In my view the
shortcut module, which is concerned with what I call Actions, was just a 
layer of abstraction on top of the character map module.

Could you explain as well why you would like to make a distinction between
key press/release events and typed character 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.

qwerty and dvorak are not necessarily different keyboards. The differences
are in the location of keys with certain scan codes, for example some keyboards 
have the key with scan code 0x2b above the enter, others have it to the left of 
it. (https://www.bhashaindia.com/knowledge/view%20lists/scancode.aspx)

> 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)

Reassigning shortcuts is indeed another issue to be discussed. The fact
that we would like to make a lot of shortcuts a system-wide concept
complicates this.

> Character map module must have access to widget data, where it stores input 
> context.

Input context? Do you mean the character map module should be able to retrieve
what it produced?

Maurice.




More information about the Y-devel mailing list









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