<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Quoth Lorenzo, on 12/07/09 14:46:
<blockquote cite="mid:4A59E94F.2080600@libero.it" type="cite">Hi all,
  <br>
  <br>
I'm a little confused by the behaviour of the [key] and [keyup]
objects.
  <br>
What I'd expect is that they 'bang' and output the number only and only
when a key is pressed (key) or depressed (keyup), while it looks like
while a key is kept pressed they go on banging. Also a [keyup] seems to
bang even when a key is 'down'.
  <br>
This also poses somewhat a problem with keyboard 'poliphony' say I keep
a key pressed while also pressing other[s].
  <br>
  <br>
Is my expectation simply wrong? I noticed that the behaviour is
different when pressing keys like SHIFT, CTRL etc.
  <br>
Also I see from the help this is system dependent, I see this on Linux
(ubuntu 9,04 - Pd 0.41.4-extended-rc1)
  <br>
  <br>
Thanks,
  <br>
Lorenzo
  <br>
  <pre wrap=""><pre wrap="">
<hr size="4" width="90%">
</pre></pre>
</blockquote>
<br>
Hi Lorenzo,<br>
<br>
[key] and [keyup] are dependant on keyboard settings in your OS. In
Ubuntu 9.04 you can turn off Repeat Keys under
System/Preferences/Keyboard. In windows I think you can slow the key
repeat rate down, but not disable it completely. I don't know about Mac
OS.<br>
<br>
James<br>
</body>
</html>