WebCore:
Fixed: <rdar://problem/
3783904> Return key behavior is confusingly different between popup menus and autofill menus
Reviewed by john.
* kwq/KWQTextField.mm:
(-[KWQTextFieldController textView:shouldHandleEvent:]): let the bridge have a crack at the event so that it can swallow the newline if it wants to
* kwq/WebCoreBridge.h:
WebKit:
Fixed: <rdar://problem/
3783904> Return key behavior is confusingly different between popup menus and autofill menus
Reviewed by john.
* WebCoreSupport.subproj/WebBridge.m:
(-[WebBridge control:textView:shouldHandleEvent:]): new
* WebView.subproj/WebFormDelegate.h:
* WebView.subproj/WebFormDelegate.m:
(-[WebFormDelegate control:textView:shouldHandleEvent:inFrame:]): new
WebBrowser:
Fixed: <rdar://problem/
3783904> Return key behavior is confusingly different between popup menus and autofill menus
Reviewed by john.
* BrowserWebController.m:
(-[FormDelegate control:textView:shouldHandleEvent:inFrame:]): new
* CompletionController.h:
* CompletionController.m:
(-[CompletionController handleInsertNewline]): new, factored out from next method
(-[CompletionController control:textView:doCommandBySelector:]): call handleInsertNewline
* FormCompletionController.h:
* FormCompletionController.m:
(-[FormCompletionController control:textView:shouldHandleEvent:]): new, call handleInsertNewline so that WebCore does not submit the form when a newline is entered
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@7955
268f45cc-cd09-0410-ab3c-
d52691b4dbfc