Bug 91988

Summary: [Qt] [WK2] editing/inserting/typing-tab-designmode tests are failing
Product: WebKit Reporter: Caio Marcelo de Oliveira Filho <cmarcelo>
Component: WebKit QtAssignee: Luciano Wolf <luciano.wolf>
Status: RESOLVED FIXED    
Severity: Normal CC: luciano.wolf, webkit.review.bot
Priority: P2 Keywords: Qt, QtTriaged
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Fix TAB problem setting QKeyEvent keyText value
none
Updated patch - after Caio's review none

Description Caio Marcelo de Oliveira Filho 2012-07-23 06:32:47 PDT
The TABs are not being added in the result. I didn't investigate it deeply, but it could be a problem with out eventSender.keyDown implementation for WK2.
Comment 1 Luciano Wolf 2012-09-10 14:21:28 PDT
Created attachment 163208 [details]
Fix TAB problem setting QKeyEvent keyText value
Comment 2 Caio Marcelo de Oliveira Filho 2012-09-10 14:45:04 PDT
Comment on attachment 163208 [details]
Fix TAB problem setting QKeyEvent keyText value

View in context: https://bugs.webkit.org/attachment.cgi?id=163208&action=review

Nice fixing that :)

> Tools/ChangeLog:10
> +        QKeyEvent must have keyText information. Doing an experiment with QWidget
> +        and intercepting it's keyPress event it's possible to notice that TAB key
> +        returns a keyCode (Qt::Key_Tab) + a keyText ("\t").

You can omit your experiment, and add that "Regular key events generated by Qt for the tab key fill both keyCode and keyText, so we should do the same for our fake events."

> Tools/WebKitTestRunner/qt/EventSenderProxyQt.cpp:134
> +            keyText = QString("\t");

Should we use QStringLiteral here? :-) http://woboq.com/blog/qstringliteral.html
Comment 3 Luciano Wolf 2012-09-10 15:00:23 PDT
Created attachment 163217 [details]
Updated patch - after Caio's review
Comment 4 WebKit Review Bot 2012-09-11 08:12:06 PDT
Comment on attachment 163217 [details]
Updated patch - after Caio's review

Clearing flags on attachment: 163217

Committed r128189: <http://trac.webkit.org/changeset/128189>
Comment 5 WebKit Review Bot 2012-09-11 08:12:09 PDT
All reviewed patches have been landed.  Closing bug.