WebCore:
authorcblu <cblu@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 8 Nov 2004 19:11:49 +0000 (19:11 +0000)
committercblu <cblu@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 8 Nov 2004 19:11:49 +0000 (19:11 +0000)
commit66bca50ec819bd45c05e14389d527a1512ea6331
tree669e727e862a6a7442e4e1c45c2b9beae4f05d2c
parent6d7fbb6f9147def9d0588f61a9acd258f824ef75
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
WebCore/ChangeLog-2005-08-23
WebCore/kwq/KWQTextField.mm
WebCore/kwq/WebCoreBridge.h
WebKit/ChangeLog
WebKit/WebCoreSupport.subproj/WebBridge.m
WebKit/WebView.subproj/WebFormDelegate.h
WebKit/WebView.subproj/WebFormDelegate.m