[Y-devel] about keyboard layouts
Peter Prohaska pitrp at wg78.de
Fri Feb 27 14:09:58 GMT 2004
On Thu, Feb 26, 2004 at 10:51:02PM +0200, Alexey Boyko wrote:
>
> Let keymapping file contains such structure (which loaded to memory at start):
>
> For example, we have 2 button (K1, K2), and want to type with 5 characters
> (A,B,C,D,E)
>
> K1 K1
> R -----------O-----------'A'
> | | K2
> | +-----------'B'
> |
> | K2 K1
> +------------O-----------'C'
> | K2 K1
> +-----------O----------- 'D'
> | K2
> +----------- 'E'
>
> (better viewed with fixed font)
>
> Then key sequences will type all five characters:
>
> K1, K1 -> 'A'
> K1, K2 -> 'B'
> K2, K1 -> 'C'
> K2, K2, K1 -> 'D'
> K2, K2, K2 -> 'E'
I like this.
This way one could also easily address the user hotkey overwrites
application hotkey problem quite easily.
If you just define one node as the default tree extension point, it
could look like:
User default map:
K1 K1
R----O----'A' (<- default extension goes here)
| | K2
| +----'B'
:
Then application wants to use 'A':
K1
+----'A'
K1 K1 | K2
R----O----O----'A'-app
| | K2
| +----'B'
:
If you have more than these two keys you would probably use
a node with no other use as extention node.
peter.
More information about the Y-devel mailing list
2026 © www.Y-Windows.Org - All Rights Reserved