Changeset 50563 in webkit
- Timestamp:
- Nov 5, 2009 7:48:43 AM (15 years ago)
- Location:
- trunk/WebKit/qt
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKit/qt/ChangeLog
r50556 r50563 1 2009-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 1 13 2009-11-05 Simon Hausmann <hausmann@webkit.org> 2 14 -
trunk/WebKit/qt/WebCoreSupport/EditorClientQt.cpp
r49397 r50563 408 408 if (kevent->shiftKey()) 409 409 frame->editor()->command("MoveLeftAndModifySelection").execute(); 410 else frame->editor()->command("MoveLeft").execute(); 410 else 411 frame->editor()->command("MoveLeft").execute(); 411 412 break; 412 413 case VK_RIGHT: 413 414 if (kevent->shiftKey()) 414 415 frame->editor()->command("MoveRightAndModifySelection").execute(); 415 else frame->editor()->command("MoveRight").execute(); 416 else 417 frame->editor()->command("MoveRight").execute(); 416 418 break; 417 419 case VK_UP: 418 420 if (kevent->shiftKey()) 419 421 frame->editor()->command("MoveUpAndModifySelection").execute(); 420 else frame->editor()->command("MoveUp").execute(); 422 else 423 frame->editor()->command("MoveUp").execute(); 421 424 break; 422 425 case VK_DOWN: 423 426 if (kevent->shiftKey()) 424 427 frame->editor()->command("MoveDownAndModifySelection").execute(); 425 else frame->editor()->command("MoveDown").execute(); 428 else 429 frame->editor()->command("MoveDown").execute(); 426 430 break; 427 431 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(); 429 436 break; 430 437 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(); 432 442 break; 433 443 case VK_TAB:
Note: See TracChangeset
for help on using the changeset viewer.