1 Reply Latest reply on Aug 29, 2006 2:49 PM by peterent

    addEventListener

    opensource_linux Level 1
      I am not sure, how I would attach Mouse or Keyboard Enter event to a button? The goal is to allow user to either use the keyboard or mouse to initiate the event.

      I tried button.addEventListener(MouseEvent.Click | KeyboardEvent.Keydown, listenerfunction);. However, I get an error. I would like the listnerfunction get invoked when the button is clicked with either a mouse or keyboard.

      Thanks.