From: Albert Wagner Date: 2001-08-07T11:09:02+09:00 Subject: [ruby-talk:19268] Re: Ruby/Tk: how to discard excess messages Hi, Nat. Just checked on my linux box and I get a keypressed/keyrelease combo sent continuously while the key is depressed. Perhaps you are on Windows? If so, then we have discovered yet another reason why Ruby/Tk scripts aren't portable. > > Once you have received a KeyPressed event for a particular key, ignore > further KeyPressed events for the same key until you receive a KeyReleased > event for that key. An auto-repeating key sends multiple KeyPressed events > without any KeyReleased events until the user actually releases the key.