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.