GNOME Bugzilla – Bug 661015
Add clutter_unicode_to_keyval function
Last modified: 2011-10-07 11:14:02 UTC
I'd like to propose adding clutter_unicode_to_keyval function to Clutter. The need comes from the efforts of porting the WebKit layout engine to Clutter. More specifically, this function is particularly needed for testing purposes when key events with various key values are simulated. Very often in WebKit's large test suite the key value is presented as a unicode character that then needs to be converted into a proper key value. The testing platform would benefit immensely from availability of this function. Already available is the clutter_keyval_to_unicode function that is practically identical to gdk_keysym_to_unicode. In the following patch I will add the unicode-to-keysym conversion table and the appropriate function, both being based on the gdk versions of the same objects.
Created attachment 198366 [details] [review] Add clutter_unicode_to_keyval This patch adds the said function and the necessary conversion table, all based on the GDK versions of both these objects.
Review of attachment 198366 [details] [review]: looks good to me.
attachment 198366 [details] [review] pushed to master