Changeset 50563 in webkit


Ignore:
Timestamp:
Nov 5, 2009 7:48:43 AM (15 years ago)
Author:
eric@webkit.org
Message:

2009-11-05 Shu Chang <Chang.Shu@nokia.com>

Reviewed by Tor Arne Vestbø.

Add support for Shift-PageUp and Shift-PageDown key events.
https://bugs.webkit.org/show_bug.cgi?id=31166

Test: LayoutTests/editing/selection/shrink-selection-after-shift-pagedown.html

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

Legend:

Unmodified
Added
Removed
  • trunk/WebKit/qt/ChangeLog

    r50556 r50563  
     12009-11-05  Shu Chang  <Chang.Shu@nokia.com>
     2
     3        Reviewed by Tor Arne Vestbø.
     4
     5        Add support for Shift-PageUp and Shift-PageDown key events.
     6        https://bugs.webkit.org/show_bug.cgi?id=31166
     7
     8        Test: LayoutTests/editing/selection/shrink-selection-after-shift-pagedown.html
     9
     10        * WebCoreSupport/EditorClientQt.cpp:
     11        (WebCore::EditorClientQt::handleKeyboardEvent):
     12
    1132009-11-05  Simon Hausmann  <hausmann@webkit.org>
    214
  • trunk/WebKit/qt/WebCoreSupport/EditorClientQt.cpp

    r49397 r50563  
    408408                if (kevent->shiftKey())
    409409                    frame->editor()->command("MoveLeftAndModifySelection").execute();
    410                 else frame->editor()->command("MoveLeft").execute();
     410                else
     411                    frame->editor()->command("MoveLeft").execute();
    411412                break;
    412413            case VK_RIGHT:
    413414                if (kevent->shiftKey())
    414415                    frame->editor()->command("MoveRightAndModifySelection").execute();
    415                 else frame->editor()->command("MoveRight").execute();
     416                else
     417                    frame->editor()->command("MoveRight").execute();
    416418                break;
    417419            case VK_UP:
    418420                if (kevent->shiftKey())
    419421                    frame->editor()->command("MoveUpAndModifySelection").execute();
    420                 else frame->editor()->command("MoveUp").execute();
     422                else
     423                    frame->editor()->command("MoveUp").execute();
    421424                break;
    422425            case VK_DOWN:
    423426                if (kevent->shiftKey())
    424427                    frame->editor()->command("MoveDownAndModifySelection").execute();
    425                 else frame->editor()->command("MoveDown").execute();
     428                else
     429                    frame->editor()->command("MoveDown").execute();
    426430                break;
    427431            case VK_PRIOR:  // PageUp
    428                 frame->editor()->command("MovePageUp").execute();
     432                if (kevent->shiftKey())
     433                    frame->editor()->command("MovePageUpAndModifySelection").execute();
     434                else
     435                    frame->editor()->command("MovePageUp").execute();
    429436                break;
    430437            case VK_NEXT:  // PageDown
    431                 frame->editor()->command("MovePageDown").execute();
     438                if (kevent->shiftKey())
     439                    frame->editor()->command("MovePageDownAndModifySelection").execute();
     440                else
     441                    frame->editor()->command("MovePageDown").execute();
    432442                break;
    433443            case VK_TAB:
Note: See TracChangeset for help on using the changeset viewer.