Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 166088

Summary: Cannot set focus to bug editor via keybinding
Product: z_Archived Reporter: Willian Mitsuda <wmitsuda>
Component: MylynAssignee: Robert Elves <robert.elves>
Status: RESOLVED FIXED QA Contact:
Severity: minor    
Priority: P3 Keywords: helpwanted
Version: 0.9   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on: 165362    
Bug Blocks:    
Attachments:
Description Flags
mylar/context/zip
none
Patch
none
mylar/context/zip none

Description Willian Mitsuda CLA 2006-11-28 12:56:24 EST
F12 key is used to set the focus to the current editor, but it is not working on bug editor.

Steps to reproduce: click on any view, press F12. The editor will be activated, but if you type some arrow key, you will see that the keyboard focus is still on the view.

I'm not sure if this is related to the other opened focus bugs.
Comment 1 Robert Elves CLA 2006-11-29 21:04:18 EST
We'll need to have support for recalling what control had the focus (bug#165362).
Comment 2 Robert Elves CLA 2006-11-29 21:05:23 EST
Created attachment 54761 [details]
mylar/context/zip
Comment 3 Willian Mitsuda CLA 2006-12-10 13:19:55 EST
Created attachment 55367 [details]
Patch

This patch remove a unecessary setFocus() override on TaskEditor class wich is causing this issue.

We can fix this for now and track the control focus on bug#165362.
Comment 4 Willian Mitsuda CLA 2006-12-10 13:19:59 EST
Created attachment 55368 [details]
mylar/context/zip
Comment 5 Robert Elves CLA 2006-12-12 19:19:26 EST
Fixed. Instead of removing the focus override (which breaks focus on summary upon new task construction), I've updated selection to select the correct page (and defaults to summary). As you suggest we can improve control focus on  bug#165362.
Comment 6 Mik Kersten CLA 2006-12-22 16:40:44 EST
I removed the setFocus override, see comments on bug 165362.