Focus the DOM tree in the Web Inspector when a node is inspected.
authortimothy@apple.com <timothy@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 30 Sep 2008 20:57:55 +0000 (20:57 +0000)
committertimothy@apple.com <timothy@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 30 Sep 2008 20:57:55 +0000 (20:57 +0000)
commit3688a7dee2135cd8e66588a0757d9395f9a37467
treeba6f2694e5797f6172a655d67674df4fdd8411ca
parent0cc2f907519499e9c9b1856db1ad94ce0ad5be83
    Focus the DOM tree in the Web Inspector when a node is inspected.
        So when the search field has focus, the focus moves to the tree,
        allowing the arrow keys work. This can happen when using the new
        find in page feature.

        https://bugs.webkit.org/show_bug.cgi?id=21251

        Reviewed by Geoff Garen.

        * page/inspector/ElementsPanel.js:
        (WebInspector.ElementsPanel): Set currentFocusElement to
        the main-panels element if the panel is visible.
        (WebInspector.ElementsPanel.prototype.updateBreadcrumb):
        Remove a set of currentFocusElement since this moved.
        * page/inspector/inspector.js:
        (WebInspector.set currentFocusElement): Always focus the element.
        This ensures that when focus changes in the page and we don't
        catch it, we will still focus the elements even if we think it
        was already focused.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@37111 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog
WebCore/page/inspector/ElementsPanel.js
WebCore/page/inspector/inspector.js