RESOLVED INVALID 31551
QEvent::RequestSoftwareInputPanel only sent second time an input field is clicked
https://bugs.webkit.org/show_bug.cgi?id=31551
Summary QEvent::RequestSoftwareInputPanel only sent second time an input field is cli...
Henrik Hartz
Reported 2009-11-16 07:02:01 PST
When clicking a user input field, only reclick gives a RequestSoftwareInputPanel event. The first click should report the same if the caret is activated inside the input field, to allow touch interfaces to raise a virtual keyboard. However, only the second click will cause a QEvent of type RequestSoftwareInputPanel to be delivered. Tested with Qt 4.6 prerelease The following example demonstrates the bug; <pre> #include <QtGui> #include <QtWebKit> #include <QDebug> class CustomWidget : public QWebView { Q_OBJECT public: CustomWidget(QWidget* parent=0) : QWebView(parent) { load(QUrl("http://google.com")); } protected: bool event( QEvent *e ) { bool returnValue = QWebView::event(e); if (e->type()==QEvent::RequestSoftwareInputPanel) qDebug() << "Software Input Panel Requested" return returnValue; } }; #include "main.moc" int main(int argc, char *argv[]) { QApplication app(argc, argv); CustomWidget wid; wid.show(); return app.exec(); } </pre>
Attachments
main.cpp overriding QWidget::event to print once RequestSoftwareInputPanel is hit (621 bytes, application/octet-stream)
2009-11-16 07:03 PST, Henrik Hartz
no flags
Henrik Hartz
Comment 1 2009-11-16 07:03:14 PST
Created attachment 43305 [details] main.cpp overriding QWidget::event to print once RequestSoftwareInputPanel is hit
Janne Koskinen
Comment 2 2009-11-20 08:31:27 PST
This is a feature of focusing, or how did you think of selecting text if fullscreen keyboard is always brought on screen? we can discuss this further.
Simon Hausmann
Comment 3 2009-11-28 02:39:48 PST
I believe this is not a WebKit bug but simply a style dependent behaviour. See also http://doc.qt.nokia.com/4.6-snapshot/qstyle.html#RequestSoftwareInputPanel-enum The code in WebKit that triggers sending the RSIP event queries the style for this style hint and if the style returns RSIP_OnMouseClick, then the RSIP is sent on a single mouse click. I wonder however if we should perhaps change our default in QCommonStyle....
Note You need to log in before you can comment on or make changes to this bug.