Commit a26216dd authored by xan@webkit.org's avatar xan@webkit.org

2009-05-13 Xan Lopez <xlopez@igalia.com>

        Reviewed by Gustavo Noronha.

        Do not handle KeyEvents with Ctrl or Alt modifiers that we
        otherwise know nothing about. Otherwise shortcuts defined in the
        WebView will never be executed.

        * WebCoreSupport/EditorClientGtk.cpp:
        (WebKit::handleEditingKeyboardEvent):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43644 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent c4183007
2009-05-13 Xan Lopez <xlopez@igalia.com>
Reviewed by Gustavo Noronha.
Do not handle KeyEvents with Ctrl or Alt modifiers that we
otherwise know nothing about. Otherwise shortcuts defined in the
WebView will never be executed.
* WebCoreSupport/EditorClientGtk.cpp:
(WebKit::handleEditingKeyboardEvent):
2009-05-13 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
Add information about the SVG index bounds check committed in
......
......@@ -495,6 +495,10 @@ static bool handleEditingKeyboardEvent(KeyboardEvent* evt)
if (evt->charCode() < ' ')
return false;
// Don't insert anything if a modifier is pressed
if (keyEvent->ctrlKey() || keyEvent->altKey())
return false;
return frame->editor()->insertText(evt->keyEvent()->text(), evt);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment