Changeset 75894 in webkit


Ignore:
Timestamp:
Jan 16, 2011 1:08:28 PM (13 years ago)
Author:
robert@webkit.org
Message:

2011-01-16 Robert Hogan <robert@webkit.org>

Reviewed by Andreas Kling.

[Qt] plugins/keyboard-events.html fails after r72717
https://bugs.webkit.org/show_bug.cgi?id=50050

  • platform/qt/Skipped: Unskip plugins/keyboard-events.html

2011-01-16 Robert Hogan <robert@webkit.org>

Reviewed by Andreas Kling.

[Qt] plugins/keyboard-events.html fails after r72717
https://bugs.webkit.org/show_bug.cgi?id=50050

  • plugins/qt/PluginViewQt.cpp: (WebCore::setXKeyEventSpecificFields): map event text to keycode
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r75889 r75894  
     12011-01-16  Robert Hogan  <robert@webkit.org>
     2
     3        Reviewed by Andreas Kling.
     4
     5        [Qt] plugins/keyboard-events.html fails after r72717
     6        https://bugs.webkit.org/show_bug.cgi?id=50050
     7
     8        * platform/qt/Skipped: Unskip plugins/keyboard-events.html
     9
    1102011-01-15  David Kilzer  <ddkilzer@apple.com>
    211
  • trunk/LayoutTests/platform/qt/Skipped

    r75878 r75894  
    53205320http/tests/security/aboutBlank/xss-DENIED-set-opener.html
    53215321
    5322 # [Qt] plugins/keyboard-events.html fails after r72717
    5323 # https://bugs.webkit.org/show_bug.cgi?id=50050
    5324 plugins/keyboard-events.html
    5325 
    53265322# REGRESSION(r72861): editing/selection/click-left-of-rtl-wrapping-text.html and modify-up-on-rtl-wrapping-text.html fail on all but Mac platform
    53275323# https://bugs.webkit.org/show_bug.cgi?id=50204
  • trunk/Source/WebCore/ChangeLog

    r75892 r75894  
     12011-01-16  Robert Hogan  <robert@webkit.org>
     2
     3        Reviewed by Andreas Kling.
     4
     5        [Qt] plugins/keyboard-events.html fails after r72717
     6        https://bugs.webkit.org/show_bug.cgi?id=50050
     7
     8        * plugins/qt/PluginViewQt.cpp:
     9        (WebCore::setXKeyEventSpecificFields): map event text to keycode
     10
    1112011-01-16  Simon Fraser  <simon.fraser@apple.com>
    212
  • trunk/Source/WebCore/plugins/qt/PluginViewQt.cpp

    r71000 r75894  
    418418
    419419    // We may not have a nativeScanCode() if the key event is from DRT's eventsender. In that
    420     // case just populate the XEvent's keycode with the Qt platform-independent keycode. The only
     420    // case fetch the XEvent's keycode from the event's text. The only
    421421    // place this keycode will be used is in webkit_test_plugin_handle_event().
     422    // FIXME: Create Qt API so that we can set the appropriate keycode in DRT EventSender instead.
    422423    if (QWebPagePrivate::drtRun && !xEvent->xkey.keycode) {
    423424        QKeyEvent* qKeyEvent = keyEvent->qtEvent();
    424425        ASSERT(qKeyEvent);
    425         if (!qKeyEvent->text().isEmpty())
    426             xEvent->xkey.keycode = int(qKeyEvent->text().at(0).unicode() + qKeyEvent->modifiers());
    427         else if (qKeyEvent->key() && (qKeyEvent->key() != Qt::Key_unknown))
    428             xEvent->xkey.keycode = int(qKeyEvent->key() + qKeyEvent->modifiers());
     426        QString keyText = qKeyEvent->text().left(1);
     427        xEvent->xkey.keycode = XKeysymToKeycode(QX11Info::display(), XStringToKeysym(keyText.toUtf8().constData()));
    429428    }
    430429
Note: See TracChangeset for help on using the changeset viewer.