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



Antonio Campos wrote:
> 
> Hi there,
> Normal buttons get down when pressed with the mouse, and then get up
> when released with the mouse.
> But when you press space or enter over the button, the button doesn't
> draw correctly. Currently, the button doesn't move, so the user doesn't
> get the feeling of a pressed button with the keyboard.

The Qt toolkit provides an "animateClick" function which
simulatest the visual effect and emits the corresponding
signals.  Waiting for the key release may be difficult on
keyboards which decide not to send them for normal keys ?

> This only happens with normal buttons, because toggle, check and radio
> ones get drawn correctly when you use the keyboard over them.
> Moreover, the buttons don't get the pressed or released signals when
> pressed or released through the keyboard, only the clicked signal. This
> doesn't happen with the mouse.
> I think this makes the GTK GUI someway non-homogeneus.

Yes, but I'm not sure the signals makle much sense even
with an "animated click".  The signals are mainly useful
for doing/showing something in between pressed and released,
so if it's known to last only a fraction of a second it's
of limited use anyhow.  Maybe as an option ?

[snip]

kai




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