Evas key events already provide key string, for instance if the User presses 'Return' key the generated Evas_Event_Key_Down(_Up) events will contain following fields: keyname = "Return", key = "Return", string = "\r", compose = "\r" So no practical need for singleCharacterString() evaluating the event string from event keyname. The only place where this function is currently used is DRT, however DRT EventSender also can provide event string itself.
Created attachment 144345 [details] patch
Comment on attachment 144345 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=144345&action=review > Tools/DumpRenderTree/efl/EventSender.cpp:124 > + KeyEventInfo(const CString& keyName, unsigned modifiers) > + : keyName(keyName) > + , modifiers(modifiers) Instead of adding a new constructor, I'd change the order of parameters in the other one and make keyString an optional last parameter whose default value is an empty string.
Created attachment 144353 [details] patch v2 (Review remarks are met)
(In reply to comment #2) > (From update of attachment 144345 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=144345&action=review > > > Tools/DumpRenderTree/efl/EventSender.cpp:124 > > + KeyEventInfo(const CString& keyName, unsigned modifiers) > > + : keyName(keyName) > > + , modifiers(modifiers) > > Instead of adding a new constructor, I'd change the order of parameters in the other one and make keyString an optional last parameter whose default value is an empty string. done.
Comment on attachment 144353 [details] patch v2 (Review remarks are met) Looks good, thanks.
Comment on attachment 144353 [details] patch v2 (Review remarks are met) Looks good to me too.
Comment on attachment 144353 [details] patch v2 (Review remarks are met) rs=me
Comment on attachment 144353 [details] patch v2 (Review remarks are met) Clearing flags on attachment: 144353 Committed r118760: <http://trac.webkit.org/changeset/118760>
All reviewed patches have been landed. Closing bug.