Commit dc0160b8 authored by adele's avatar adele

Reviewed by Justin.

        * COM/WebView.cpp:
        (WebView::keyPress): Added case for VK_RETURN. 



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14747 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent c382f5ba
......@@ -148,6 +148,12 @@ bool WebView::keyPress(WPARAM wParam, LPARAM lParam)
case VK_DOWN:
frame->selection().modify(SelectionController::MOVE, SelectionController::FORWARD, ParagraphGranularity);
break;
case VK_RETURN:
if (start->isContentRichlyEditable())
TypingCommand::insertParagraphSeparator(frame->document());
else
TypingCommand::insertLineBreak(frame->document());
break;
default:
nextCharIsInputText = true;
}
......
2006-06-06 Adele Peterson <adele@apple.com>
Reviewed by Justin.
* COM/WebView.cpp:
(WebView::keyPress): Added case for VK_RETURN.
2006-06-06 Anders Carlsson <acarlsson@apple.com>
Reviewed by John.
......
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