LayoutTests:
authorjusting <justing@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 16 Jan 2007 00:53:51 +0000 (00:53 +0000)
committerjusting <justing@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 16 Jan 2007 00:53:51 +0000 (00:53 +0000)
commitf6ab650d508defdec56e00d598f891dc54a3920e
treedd6b87febe70a40afd20a654e51be28f6683f9db
parent33b9f657973a87fbfbc32b725cc331843fbd90ef
LayoutTests:

        Reviewed by mjs

        <rdar://problem/4810960>
        Gmail Editor: window.focus() called on keyDown (9640)

        * editing/input/attributed-substring-from-range-lines.html-disabled:
        * fast/events/keydown-1-expected.checksum: Added.
        * fast/events/keydown-1-expected.png: Added.
        * fast/events/keydown-1-expected.txt: Added.
        * fast/events/keydown-1.html: Added.

WebKit:

        Reviewed by mjs

        <rdar://problem/4810960>
        Gmail Editor: window.focus() called on keyDown (9640)

        The window's keydown event handler was being called
        instead of the editable subframe's if there was a key binding
        for the key event.

        * WebView/WebHTMLView.mm:
        (-[WebHTMLView performKeyEquivalent:]): Don't send the event
        to WebCore unless this WebHTMLView is the firstResponder.

WebKitTools:

        Reviewed by mjs

        <rdar://problem/4810960>
        Gmail Editor: window.focus() called on keyDown (9640)

        * DumpRenderTree/EventSendingController.m: Send the keyDown event
        to the firstResponder, not the event's locationInWindow.  A
        key press's locationInWindow is meaningless and just a dummy
        coordinate.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18875 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/editing/input/attributed-substring-from-range-lines.html-disabled
LayoutTests/fast/events/keydown-1-expected.checksum [new file with mode: 0644]
LayoutTests/fast/events/keydown-1-expected.png [new file with mode: 0644]
LayoutTests/fast/events/keydown-1-expected.txt [new file with mode: 0644]
LayoutTests/fast/events/keydown-1.html [new file with mode: 0644]
WebKit/ChangeLog
WebKit/WebView/WebHTMLView.mm
WebKitTools/ChangeLog
WebKitTools/DumpRenderTree/EventSendingController.m