Bug 271382 - Focus not set properly after activating XML editor
Summary: Focus not set properly after activating XML editor
Status: RESOLVED FIXED
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: wst.xml (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P2 normal (vote)
Target Milestone: 3.1 M7   Edit
Assignee: Nitin Dahyabhai CLA
QA Contact: Nitin Dahyabhai CLA
URL:
Whiteboard:
Keywords: accessibility
Depends on:
Blocks:
 
Reported: 2009-04-06 17:40 EDT by Nitin Dahyabhai CLA
Modified: 2009-04-21 14:33 EDT (History)
2 users (show)

See Also:


Attachments
not quite enough patch (1.10 KB, patch)
2009-04-06 20:24 EDT, Nitin Dahyabhai CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nitin Dahyabhai CLA 2009-04-06 17:40:21 EDT
3.1m6

When opening the XML Editor, if the Source page is the default, the source viewer correctly becomes the focused control, but if the Design page is the default displayed page, nothing apparently gets focus.  Reproducable with Inspect32 4.2.5523.0.
Comment 1 Nitin Dahyabhai CLA 2009-04-06 20:23:55 EDT
Apparently not as simple as calling fDesignViewer.getControl().forceFocus() in XMLMultiPageEditorPart.createPages() ...
Comment 2 Nitin Dahyabhai CLA 2009-04-06 20:24:46 EDT
Created attachment 131074 [details]
not quite enough patch
Comment 3 Nick Sandonato CLA 2009-04-13 17:28:22 EDT
Once 271844 is implemented, we'll get this for free.
Comment 4 Nitin Dahyabhai CLA 2009-04-21 14:11:55 EDT
Fixed.  Had to use forceFocus.
Comment 5 David Williams CLA 2009-04-21 14:33:55 EDT
I wonder if a similar fix could be used for bug 268407