nanogui: X11 KEY_UP event
Subject:
Re: X11 KEY_UP event
From:
Timo Ketola ####@####.####
Date:
10 May 2001 10:32:24 -0000
Message-Id: <3AFA6D6E.648AB88@Epec.fi>
Jordan Crouse wrote:
>
> <Madly leafing through the X11 reference book>
>
> >From what I have read, it seems that the some X11 servers do not send
> KEY_RELEASE events, so the KEY_DOWN is replicated many times to "simulate"
> multiple keystrokes.
So, there is no standard behaviour?
> However, you *can* turn off key replication with the
> following commands:
>
> XAutoRepeatOff() and XAutoRepeatOn() toggle the global auto repeat for all
> keys, whereas XChangeKeyboardControl() allows you to chnage the settings for
> individual keys.
Ok, that would solve the problem but has the side effect to break the
autorepeat in all other programs under the same X-server. It is a little
annoying to use editor in that environment.
> I am going to assume you will need to use one or the other of these functions
> to replicate the functionality that you need.
>
> There is one other method you could consider, however. You could build
> Microwindows for the framebuffer, and run outside of the X11 environment
> using the TTY or TTYSCAN drivers. That would help eliminate some of the
> problems that the X11 environment introduces.
Thank you so much for your time. These are possible solutions but it may
be that there is no ideal solution. If you ever happen to run into a
XExtraKeyReleaseEventsOffWhileAutoRepeatStaysOn ( ;-) ) function call
when leafing your X11 reference, please drop me a line. I'll try the
AutoRepeatOff command in the meantime.
--
Timo
--
direct: +358 6 2170 222
GSM: +358 40 5851 222
switch: +358 6 2170 111
fax: +358 6 2170 110
e-Mail: ####@####.####
Post office address: Street address:
Epec Oy Epec Oy
Timo Ketola Timo Ketola
Box 194 Kauppaneliö 1
FIN-60101 Seinäjoki FIN-60100 Seinäjoki