Re: normal buttons don't get down when pressed with SPACE or ENTER



Antonio Campos <acampos@ceronet.com> writes: 
> But Havoc, when you press a normal button with the mouse and gets down and
> then you press it with the keyboard (or click, whatever) and doesn't get
> down, it's really a little annoying (for the user mainly). (not really a big
> bug, but at least I say it's annoying, because toggle, check and radio
> buttons does respond to the keyboard presses).
> I almost managed to change this behaviour changing the sources, but I'm still
> having problems.

I am sort of convinced you're right.

The key shortcuts aren't done via key press/release on the button,
they are accelerators; so what you need to do is implement "clicked" 
in such a way that it draws the button pressed in, and installs a
brief timeout to redraw the button unpressed a moment later.

Havoc



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]