[Y-devel] Logical input devices
Kris Van Hees aedil-y-devel at alchar.org
Sun Feb 29 05:19:54 GMT 2004
Some comments...
On Sat, Feb 28, 2004 at 07:59:01PM -0500, Bryce Nichols wrote:
> > Some things to consider:
> > 1) which level should handle repeating of characters when the key
> > has been pressed for some time?
>
> This is somewhat complicated, so we should think carefully about how to
> make this work in a clean, consistent manner. The general appoach, I
> think, should be that after the initial delay, while a key that triggered
> a "key typed" event is still depressed, repeat "key typed" events will be
> sent until the key is released or some modifier changes.
This should probably be under control of a module that allows for modifications
to the logic, to e.g. support the concept of StickyKeys and the likes, used
most often in accessibility solutions for people with limited motor skills. In
cases like that you need to be able to do things like disable auto-repeat or
put it at a high delay before repeating, and allowing for setting a modifier
by e.g. pressing a key for a longer time, because you might not be able to
hit a Shift-A, or Ctrl-C combination by hitting both keys at the same time.
> > 2) I think we should allow any key to work as a modificator (instead
> > of simply Ctrl, Alt, AltGr, Shift, Meta, Super, Hyper). However,
> > current keyboards give output of "a" and "b" in case of the
> > following key sequence: "a down", "b down", "b up", "a up". Should
> > Y's logical character driver generate characters "a","b","a+b" or
> > "a","a+b","b" (I think it should be the latter). Does it matter?
>
> We may want to make the behavior for this sort of thing configurable.
I agree. I also would like to see all or most keys to be available as a
modifier, if that is requested by means of an API call. It is e.g. common
for MS Windows-based screen reading software to use the Insert key as a
modifier for various functions, so that clashes with other applications are
very unlikely. You can never really avoid it, but having a wider range of
modifier keys being available (if desired) definitely makes things like this
a lot easier.
> > 3) How should the characters be outputted from the driver. If we
> > allow any key combination, we cannot output a character with a full
> > mod key bitmap like X does. Perhaps an array of all currently
> > pressed keys?
>
> Yes, send the set of modifiers currently in effect.
>
> > 4) Should the user be able to customize behavior of logical input
> > device (emulation of different key emulations). Probably yes? If so,
> > should the customization have some kind of API or should this be
> > driver dependant? The same issue needs to be decided for the
> > character input driver too.
> >
>
> Yes, an API and supporting tools would be crucial for it to be usable.
I'd also like to argue to provide for a 'feedback' mechanism where a client
and/or server module can use an API to simulate input device events, like
keystrokes and mouse movements. That's rather crucial to provide various
forms of accessibility, to e.g. allow a blind user to use keyboard commands
to manipulate things on the screen, and to ensure that those actions will
result in appropriate mouse movements (if that is needed) so that for a
sighted onlooker, things still make sense. If I am not supposed to be able to
enter data in a window without the mouse pointer being in the window, it better
be there if I can use keyboard commands to set my focus on that window :)
Kris
More information about the Y-devel mailing list
2026 © www.Y-Windows.Org - All Rights Reserved