Changeset 69840 in webkit


Ignore:
Timestamp:
Oct 14, 2010 11:33:46 PM (14 years ago)
Author:
commit-queue@webkit.org
Message:

2010-10-14 Wei Jia <wjia@chromium.org>

Reviewed by Darin Fisher.

Retrieve info of lock keys from stashed currentInputEvent which
is stored by chromium when it passes input event to WebCore.
Retrieving only when stashed event is a keyboard event, which
means synthetic KeyboardEvent inherits lock key state from real
keyboard event.
https://bugs.webkit.org/show_bug.cgi?id=46518

  • src/WebPluginContainerImpl.cpp: (WebKit::WebPluginContainerImpl::handleKeyboardEvent):
Location:
trunk/WebKit/chromium
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit/chromium/ChangeLog

    r69834 r69840  
     12010-10-14  Wei Jia  <wjia@chromium.org>
     2
     3        Reviewed by Darin Fisher.
     4
     5        Retrieve info of lock keys from stashed currentInputEvent which
     6        is stored by chromium when it passes input event to WebCore.
     7        Retrieving only when stashed event is a keyboard event, which
     8        means synthetic KeyboardEvent inherits lock key state from real
     9        keyboard event.
     10        https://bugs.webkit.org/show_bug.cgi?id=46518
     11
     12        * src/WebPluginContainerImpl.cpp:
     13        (WebKit::WebPluginContainerImpl::handleKeyboardEvent):
     14
    1152010-10-14  John Abd-El-Malek  <jam@chromium.org>
    216
  • trunk/WebKit/chromium/src/WebPluginContainerImpl.cpp

    r68869 r69840  
    469469    }
    470470
     471    const WebInputEvent* currentInputEvent = WebViewImpl::currentInputEvent();
     472
     473    // Copy stashed info over, and only copy here in order not to interfere
     474    // the ctrl-c logic above.
     475    if (currentInputEvent
     476        && WebInputEvent::isKeyboardEventType(currentInputEvent->type)) {
     477        webEvent.modifiers |= currentInputEvent->modifiers &
     478            (WebInputEvent::CapsLockOn | WebInputEvent::NumLockOn);
     479    }
     480
    471481    WebCursorInfo cursorInfo;
    472482    if (m_webPlugin->handleInputEvent(webEvent, cursorInfo))
Note: See TracChangeset for help on using the changeset viewer.