Commit e80e3dbe authored by yi.4.shen@nokia.com's avatar yi.4.shen@nokia.com

2011-04-08 Yi Shen <yi.4.shen@nokia.com>

        Reviewed by Antonio Gomes.

        [Qt]REGRESSION(r82243): fast/events/onsearch-enter.html fails
        https://bugs.webkit.org/show_bug.cgi?id=57472

        Unskips the fast/events/onsearch-enter.html test.

        * platform/qt/Skipped:
2011-04-08  Yi Shen  <yi.4.shen@nokia.com>

        Reviewed by Antonio Gomes.

        [Qt]REGRESSION(r82243): fast/events/onsearch-enter.html fails
        https://bugs.webkit.org/show_bug.cgi?id=57472

        Avoid to insert new line for both keydown event & keypress event.

        * WebCoreSupport/EditorClientQt.cpp:
        (WebCore::EditorClientQt::handleInputMethodKeydown):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83295 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 13b82ef5
2011-04-08 Yi Shen <yi.4.shen@nokia.com>
Reviewed by Antonio Gomes.
[Qt]REGRESSION(r82243): fast/events/onsearch-enter.html fails
https://bugs.webkit.org/show_bug.cgi?id=57472
Unskips the fast/events/onsearch-enter.html test.
* platform/qt/Skipped:
2011-04-07 Pavel Podivilov <podivilov@chromium.org>
Reviewed by Pavel Feldman.
......@@ -3234,10 +3234,6 @@ plugins/embed-prefers-plugins-for-images.html
# https://bugs.webkit.org/show_bug.cgi?id=57306
http/tests/uri/username-with-no-hostname.html
# [Qt]REGRESSION(r82243): fast/events/onsearch-enter.html fails
# https://bugs.webkit.org/show_bug.cgi?id=57472
fast/events/onsearch-enter.html
# [Qt] media/video-playbackrate.html fails
# https://bugs.webkit.org/show_bug.cgi?id=57476
media/video-playbackrate.html
......
2011-04-08 Yi Shen <yi.4.shen@nokia.com>
Reviewed by Antonio Gomes.
[Qt]REGRESSION(r82243): fast/events/onsearch-enter.html fails
https://bugs.webkit.org/show_bug.cgi?id=57472
Avoid to insert new line for both keydown event & keypress event.
* WebCoreSupport/EditorClientQt.cpp:
(WebCore::EditorClientQt::handleInputMethodKeydown):
2011-04-07 Caio Marcelo de Oliveira Filho <caio.oliveira@openbossa.org>
Reviewed by Benjamin Poulain.
......
......@@ -534,12 +534,13 @@ void EditorClientQt::handleInputMethodKeydown(KeyboardEvent* event)
{
#ifndef QT_NO_SHORTCUT
const PlatformKeyboardEvent* kevent = event->keyEvent();
if (kevent->type() == PlatformKeyboardEvent::RawKeyDown) {
if (kevent->type() == PlatformKeyboardEvent::RawKeyDown && !event->defaultPrevented()) {
QWebPage::WebAction action = QWebPagePrivate::editorActionForKeyEvent(kevent->qtEvent());
switch (action) {
case QWebPage::InsertParagraphSeparator:
case QWebPage::InsertLineSeparator:
m_page->triggerAction(action);
event->setDefaultHandled();
break;
default:
break;
......
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