Hi there

I'm struggling with a series of KeyboardEvents. Here is the scenario: 
- I have mouse-down and mouse-up event listeners for my UIComponent.
- In the mouse-down event I add a new listener for key-up(so that I
can  capture mouse-down + a key pressed)
- I remove the key-up listener in the mouse-up event

The functionality works fine for the 1st time I have my mouse-down -
i.e. the key-up event fires when I hold my mouse down and press a key

It doesn't work the 2nd time, once I have un-pressed my mouse (firing
the mouse-up event & removing the key listener) and pressing my mouse
again (firing the mouse-down event, adding the key listener)

It does however work if I explicitly dispatch a KeyboardEvent.KEY_UP

Any expertise on this?

Thanks





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to