Changeset 69582 in webkit


Ignore:
Timestamp:
Oct 12, 2010 7:47:24 AM (14 years ago)
Author:
yael.aharon@nokia.com
Message:

2010-10-12 Yael Aharon <yael.aharon@nokia.com>

Reviewed by Antonio Gomes.

[Qt] Editing commands should not be executed on non-editable content.
https://bugs.webkit.org/show_bug.cgi?id=47426

  • fast/events/scroll-after-click-on-tab-index-expected.txt: Added.
  • fast/events/scroll-after-click-on-tab-index.html: Added.

2010-10-12 Yael Aharon <yael.aharon@nokia.com>

Reviewed by Antonio Gomes.

[Qt] Editing commands should not be executed on non-editable content.
https://bugs.webkit.org/show_bug.cgi?id=47426

Remove calls to editor()->command() when we are not in editable content.
There is no value in doing that, and in some cases, it prevents scrolling.

  • WebCoreSupport/EditorClientQt.cpp: (WebCore::EditorClientQt::handleKeyboardEvent):
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r69577 r69582  
     12010-10-12  Yael Aharon  <yael.aharon@nokia.com>
     2
     3        Reviewed by Antonio Gomes.
     4
     5        [Qt] Editing commands should not be executed on non-editable content.
     6        https://bugs.webkit.org/show_bug.cgi?id=47426
     7
     8        * fast/events/scroll-after-click-on-tab-index-expected.txt: Added.
     9        * fast/events/scroll-after-click-on-tab-index.html: Added.
     10
    1112010-10-12  Alexander Pavlov  <apavlov@chromium.org>
    212
  • trunk/WebKit/qt/ChangeLog

    r69396 r69582  
     12010-10-12  Yael Aharon  <yael.aharon@nokia.com>
     2
     3        Reviewed by Antonio Gomes.
     4
     5        [Qt] Editing commands should not be executed on non-editable content.
     6        https://bugs.webkit.org/show_bug.cgi?id=47426
     7
     8        Remove calls to editor()->command() when we are not in editable content.
     9        There is no value in doing that, and in some cases, it prevents scrolling.
     10
     11        * WebCoreSupport/EditorClientQt.cpp:
     12        (WebCore::EditorClientQt::handleKeyboardEvent):
     13
    1142010-10-08  Hui Huang  <hui.2.huang@nokia.com>
    215
  • trunk/WebKit/qt/WebCoreSupport/EditorClientQt.cpp

    r68517 r69582  
    458458        else
    459459#endif // QT_NO_SHORTCUT
    460         switch (kevent->windowsVirtualKeyCode()) {
    461         case VK_UP:
    462             frame->editor()->command("MoveUp").execute();
    463             break;
    464         case VK_DOWN:
    465             frame->editor()->command("MoveDown").execute();
    466             break;
    467         case VK_PRIOR: // PageUp
    468             frame->editor()->command("MovePageUp").execute();
    469             break;
    470         case VK_NEXT: // PageDown
    471             frame->editor()->command("MovePageDown").execute();
    472             break;
    473         case VK_HOME:
    474             if (kevent->ctrlKey())
    475                 frame->editor()->command("MoveToBeginningOfDocument").execute();
    476             break;
    477         case VK_END:
    478             if (kevent->ctrlKey())
    479                 frame->editor()->command("MoveToEndOfDocument").execute();
    480             break;
    481         default:
    482             if (kevent->ctrlKey()) {
    483                 switch (kevent->windowsVirtualKeyCode()) {
    484                 case VK_A:
    485                     frame->editor()->command("SelectAll").execute();
    486                     break;
    487                 default:
    488                     return;
    489                 }
    490             } else
    491                 return;
    492         }
     460            return;
    493461    }
    494462    event->setDefaultHandled();
Note: See TracChangeset for help on using the changeset viewer.