Community
Participate
Working Groups
I20100509-0800 Cocoa "New > Untitled Text File" via wizard does not give focus to editor. The editor is created, but the previously focused editor keeps focus. Works fine via toolbar button menu or via File > New > submenu.
Works fine for me on Windows XP using N20100507-2000. Markus, can you check since when this is broken?
Markus, please quickly debug on your Mac.
I can only reproduce the problem with the new editor opening "behind" the active editor in my dev workspace. Will not pursue this problem further for now. In another workspace, in the target, and in 3.5, the editor is opened and its tab comes to front, but the StyledText doesn't take keyboard focus. Debugging this revealed that StyledText#setFocus() is called while the wizard shell is still open. On Windows, this stores the StyledText in Decorations.savedFocus, and when the wizard shell is closed, Decoration#restoreFocus() is executed. On Cocoa, Decoration#restoreFocus() is only called from Shell#open(). That's not enough. Moving to SWT.
Created attachment 168209 [details] work in progress This addresses the bug by adding the save/restoreFocus similar to what Carbon was doing. It probably needs more testing than we can give it for rc1, though.
Fixed > 20100715, using the attached patch.
*** Bug 303677 has been marked as a duplicate of this bug. ***
This fix causes bug#322151.
*** Bug 347166 has been marked as a duplicate of this bug. ***