[Y-devel] keyboard layouts (continued)

Maurice van der Pot griffon26 at kfk4ever.com
Sun Feb 29 21:37:22 GMT 2004


On Sun, Feb 29, 2004 at 02:39:21PM -0500, Bryce Nichols wrote:
> I don't see it as being handled in a separate "decision tree".  I guess
> this is because my idea of the input handling is to have a single state
> machine.  The events that drive the state machine are low-level key
> events: presses and releases.  Modifiers should be at logical level (part
> of the state) and not necessarily tied directly to the physical state of
> any one key.

The reason you can look at it as a separate decision tree is that 
on the logical level the selection processes of modifiers and normal 
keys are orthogonal. 

I just realised that until now the output of the decision tree was 
not defined that well. Is the key press event generated as a result
of the key press that moved the state to a leaf? I think so. And then
the key release event would be generated by the release of the last 
key in the key sequence.

> It's not so much that there's any imminent need for modifiers to be
> triggered by key sequences.  Rather, it is important to avoid special
> cases in the input method.  If I can trigger some unicode character with a
> key sequence, I should be able to trigger a modifier with a key sequence
> too.

I suppose there's no harm in implementing this. If it is not used, the
modifier decision tree will just be 1 deep everywhere.

> Here's a possible use.  Let's say we decide to make a modifier, MOD6,
> represent japanese kanji input.  It might be nice if mashing a few
> home-row keys could toggle MOD6.  Of course, it would be totally
> configurable.  Maybe someone would want F12 to be the sequence.  Or
> SHIFT-F12.

This is more like a switch of keymap than it is a toggling modifier.
In fact, with a keymap switch you can do this _and_more_.

> Oh, and I have this binary keyboard that has only 2 keys.  I need a way to
> enter the equivalent of CAPS-LOCK, so I don't have to type an extra bit
> for setting the case of letters each time.

Will you drop it if I just buy you a three-button mouse instead? ;)

Maurice.




More information about the Y-devel mailing list









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