[Swfdec] [Bug 18946] Swfdec 0.8.2 does not process key events

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Dec 11 07:05:43 PST 2008


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





--- Comment #2 from zou <zoulunkai at gmail.com>  2008-12-11 07:05:43 PST ---
I haven't try the test with GTK(I don't use GTK).  But by reviewing the swfdec
source code, I think the key code translation part might need to be imporved. I
suspect the function swfdec_gtk_keycode_from_hardware_keycode() doesn't work
quite well on some systems. It's strange to me that someone want to translate
the hardware code directly. Why not translate GdkEventKey->keyval or the
unicode represented by the keyval instead? Isn't hardware keycode hardware
dependent, thus not portable?


To helmut.jahns:

If you'd like to take a test, you may want check if function
swfdec_gtk_event_to_keycode() works as expected on your platform. 
See file swfdec_gtk_widget.c, function swfdec_gtk_widget_key_press(),
line170(git head), that's where swfdec get the key code. When you press the
'LEFT' key, the return value should be 37. Add some printings there, you should
see if it works as expected.

--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