Bug 69738

Summary: Web Inspector: shift focus to the source view when a resource is selected in the Scripts panel
Product: WebKit Reporter: johnjbarton <johnjbarton>
Component: Web Inspector (Deprecated)Assignee: Alexander Pavlov (apavlov) <apavlov>
Status: RESOLVED FIXED    
Severity: Normal CC: apavlov, bweinstein, joepeck, keishi, loislo, pfeldman, pmuellr, rik, timothy, yurys
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch timothy: review+

Description johnjbarton 2011-10-09 21:37:57 PDT
1. Open Web Inspector on any site with JS
2. Select Scripts button
3. Click the file list, select one file, the menu closes.
4. Hit page down.

Expected: the source pages down
Actual: the source changes to a file I did not select. I have to reselect the file I want.

The user has selected a source. Now they are ready to work on that view. But keyboard focus remains on the file list. Very frustrating.
Comment 1 Alexander Pavlov (apavlov) 2011-11-23 08:35:51 PST
Created attachment 116364 [details]
Patch
Comment 2 Timothy Hatcher 2011-11-23 18:25:33 PST
Comment on attachment 116364 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=116364&action=review

> Source/WebCore/inspector/front-end/SourceFrame.js:102
> +    focusEditor: function()

Why not just call this focus()?
Comment 3 Alexander Pavlov (apavlov) 2011-11-24 01:37:44 PST
Committed r101129: <http://trac.webkit.org/changeset/101129>