[Y-devel] Key mappings
Dmitry Platonov shadowjack at mail.ru
Thu Feb 26 21:17:08 GMT 2004
On Thu, Feb 26, 2004 at 01:21:43PM +0200, Alexey Boyko wrote:
>
> > > There is one problem for complex languages: each widget, which take
> > > input, must store list of typed keys for determining which character is
> > > entered. (character is entered by several keystrokes), because input
> > > focus may change between characters.
> >
> > I think there must be two types of events: from physical layer (KB_ESC,
> > KB_S, KB_F1, etc.) for games, controls, shortcuts (one per keypress,
> > keyrelease and keyrepeat) and from logical layer (traslated unicode
> > characters), allowing complex input methods.
>
>
> Yes. I think from input driver into widgets and applications must goes such
> data:
>
> {
> flag keypress or keyrelease,
> logical keycode,
> associated character in wchar_t, or 0 if no character with this key
> modifier state (shift,ctrl,alt,...)
> }
>
> When program processes hotkey, it analyzes keycode, when program typing text -
> character.
>
I think it would be better to split this event in two. Character input is not
necessary associated with keypresses (hm, it can be, say, speach recognition). And keypresses can be not associated with chars. Thus, i see no pount in uniting this events.
More information about the Y-devel mailing list
2026 © www.Y-Windows.Org - All Rights Reserved