1 Reply Latest reply on Feb 12, 2007 4:27 AM by macdaddy256

    Key and button clash

    macdaddy256 Level 1
      Hi. Not sure what is going wrong here - hope someone can help.
      I have a class (skeleton code attached) that takes care of all the button presses and key stroke admin. I have set up an evennt listener for a play button, and a listener for the space bar, - both should call a common function. When I test the code, if I press the space bar, all is fine, then when I press the play button all is fine. However, if after (and only after) I have pressed th eplay button I then press the space bar, both liseners are triggered, and both call the common function (it is called twice).

      Have I missed some important piece of legislation on the use of component and key liseners, or am I just being daft?