[Y-devel] keyboard layouts (continued)
Alexey Boyko smartly at gala.net
Sun Feb 29 21:48:10 GMT 2004
> Maybe in addition to Actions, we should also define some standard modifier
> functions. If a modifier with such a standard function is pressed, the
> application is notified. If some other modifier is pressed, it wouldn't
> make sense to the application anyway, so we don't generate an event.
Some modifiers must be standard anyway, else what are we doing? ;)
> > if virtual keys will have names like VK_TOPLEFTLETTER, how applications
> > will parse strings like "Ctrl+C DoCopy"? where they find, that 'C' have
> > virtual key VK_SOMEWHEREINBOTTOM? ;)
>
> If you press Ctrl+C on qwerty, a VK_BOTTOMTHIRDLETTERFROMLEFT ;) will be
> sent by layer 1 to the character tree (layer 2) along with the modifier
> state. The modifier state will have no effect on the handling of the
> VK_BOTTOMTHIRDLETTERFROMLEFT in the character tree for qwerty and it will
> be sent up to layer 3 along with the modifier state. Layer 3 will see that
> a ctrl+c corresponds to the action called Copy and will send a Copy action
> to the application.
You describe case, when predefined action pressed, but I ask about application
specific hotkey.
> Now some other scenarios:
...
So, you suppose solution when Actions is defined for each layout, that can be
supported?
> This is where our opinion differs. In my opinion the only conversion that
> is done in the keyboard driver should be done to get to values that
> correspond to key positions.
May be. Need additional thinking.
I tries to write some code for testing.
> If you want to do the translation in the keyboard driver in such a way that
> the q of qwerty and q of azerty generate the same key code, then answer me
> this:
May be I dont know something, what is dvorak?
> If you have a US keyboard with qwerty keycaps and you want to type with
> dvorak, then the conversion has to be done at the level of what you call
> the charmap. But if you have a US keyboard with dvorak keycaps, no
> conversion is done anywhere.
>
> If you ask me, that is about as logical as taking your US keyboard with
> qwerty keycaps, rearrange the keycaps to a dvorak layout and just expecting
> to be able to type with the new layout.
>
> > Naturally, I looks on that from my own belltower. May be this two maps
> > must be in one file, because they probably changed synchronously. May be
> > we must have another data flow model.
>
> And that is exactly the problem with your approach. You need multiple
> dvorak charmaps for keyboards with different key caps. Unless you want
> users to take their azerty, tell their computer it's a qwerty and then use
> a dvorak layout for qwerty keyboards.
Im already confused. ;)
> I looked at this page: https://www.york.ac.uk/inst/ltc/lfa/russkeybd.htm
> and it looked like a small arch with a forward slash through it ;)
\_/
| /|
| / |
| / |
| / |
|/ |
;)
More information about the Y-devel mailing list
2026 © www.Y-Windows.Org - All Rights Reserved