[Webkit-unassigned] [Bug 31551] New: QEvent::RequestSoftwareInputPanel only sent second time an input field is clicked

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Nov 16 07:02:02 PST 2009


https://bugs.webkit.org/show_bug.cgi?id=31551

           Summary: QEvent::RequestSoftwareInputPanel only sent second
                    time an input field is clicked
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Mac OS X 10.5
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: Forms
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: henrik.hartz at nokia.com
                CC: henrik.hartz at nokia.com


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>

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list