[Swfdec] [Bug 18946] Not all key events are processed.

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Feb 21 20:11:31 PST 2009


http://bugs.freedesktop.org/show_bug.cgi?id=18946





--- Comment #11 from zou <zoulunkai at gmail.com>  2009-02-21 20:11:31 PST ---
OK, tested myself, the patch to swfdec_player.c is NOT correct.  The
SWFDEC_EVENT_KEY_DOWN/UP event shouldn't be queued unconditionally. otherwise,
each event handler might be triggered twice due to later
swfdec_player_broadcast(). 

The problem is that for swf actors, there are two types of keyDown/up event
handlers. One is defined in PlaceObject2 tags(built-in handlers), with actions
like onClipEvent(keyDown); the other is defined in normal actionscript blocks,
with actions like actor.onKeyDown = function () {}; Key.addListener(actor). As
far as I can, there is more work to handle this situation correctly without
changing the current interfaces.

--zou


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the Swfdec mailing list