[PATCH] ignore k_Repeat in cInterface::Wait()

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

 



Hi,

Marko M?kel? wrote:

> While testing my suspend patch (see the previous message), I noticed somewhat
> annoying behaviour of cInterface::Wait().  If I press the "Suspend" key
> for a long time, so that it makes a normal keypress event as well as a
> k_Repeat event, the "Press any key to cancel shutdown" prompt will be
> cleared by the k_Repeat event.  I presume that the same would happen
> with the "Power" key.

That's true. Most of the time, my mom seems to be not able to press the 
power key short enough to not trigger a k_Repeat event. As a result the 
VDR in the living room won't be powered off quite often (it's another 
question whether it is useful to switch of a VDR anyway ;-))

Maybe it would be a good idea to change the test in a way that it must 
be a different key, to abort the action, not the key that triggers the 
action. E. g. press power to initiate shutdown but back for example to 
abort it.

Bye.
-- 
Dipl.-Inform. (FH) Reinhard Nissl
mailto:rnissl@xxxxxx


[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux