Bug 69738 - Web Inspector: shift focus to the source view when a resource is selected in the Scripts panel
Summary: Web Inspector: shift focus to the source view when a resource is selected in ...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Alexander Pavlov (apavlov)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-09 21:37 PDT by johnjbarton
Modified: 2011-11-24 01:37 PST (History)
10 users (show)

See Also:


Attachments
Patch (4.12 KB, patch)
2011-11-23 08:35 PST, Alexander Pavlov (apavlov)
timothy: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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>