Cheers Roman, that clears up the different behaviour in Steffens patch and something to be aware of in the future too.
I guess this is why we should generally favour [hid].
thanks, andy
On Wed, 11 Oct 2006 00:12:40 +0200 Roman Haefeli reduzierer@yahoo.de wrote:
On Wed, 2006-10-11 at 06:35 +0100, padawan12 wrote:
Any idea why? Does Windows send a different event for a real key-up than a repeat?
[key]/[keyup]/[keyname] do *NOT* behave the same on linux and on windows (don't know about OSX).
[keyname]'s left inlet on linux,when a key is pressed:
1..........01..01..01..01..01..01..01..01..01..01
the time between 0 and 1 is [at least on my two linux boxes] very short.. about 3ms. this makes it possible to skip a 0-1 pair with a delay: if a 0 is followed by a 1 within lets say 10ms, both are skipped. this adds a little delay (10ms) to the release event, though.
the same on windows:
1..........1..1..1..1..1..1..1..1..1..1..1..1
that also means, that [keyup] doesn't repeat on windows, but it does on linux, whereas [key] repeats on both.
roman
___________________________________________________________ Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de