Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 381149 - Tabbing/Traversing doesn't work in ToolBars on mac os x
Summary: Tabbing/Traversing doesn't work in ToolBars on mac os x
Status: CLOSED DUPLICATE of bug 390713
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.8   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-31 05:08 EDT by David Lindholm CLA
Modified: 2012-10-01 15:48 EDT (History)
5 users (show)

See Also:


Attachments
Sample editor with tab traversal issue (2.44 KB, application/octet-stream)
2012-06-21 18:52 EDT, Nam Le CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Lindholm CLA 2012-05-31 05:08:34 EDT
Build Identifier: Version: 3.8.0 Build id: I20120525-1400

Tabbing / traversing Controls in Eclipse sometimes stops working on mac os x. After you get stuck you cannot tab either backward or forward. When this problem occur you are always at a ToolBar (I haven't seen it on any other Control).

Reproducible: Always

Steps to Reproduce:
1. Start a fresh Eclipse.
2. Select a new workspace.
3. Close the welcome screen.
4. Start pressing tab (and shift-tab). You will see how the focus traverses to different Controls, as expected.
5. Switch to the Debug perspective.
6. Press tab a few times. You will get stuck at "Skip All Breakpoints". This is a bug. However, you can Shift-Tab away again. 
7. Switch back to the Java Perspective.
8. Now you can tab or shift-tab back and forth, until you get to "New Java Package". Now you cannot navigate away with tab or shift-tab. You are stuck.

Some debugging yielded that we are dealing with a ToolBar. Composite.keyDown() will see that this ToolBar has focus, but it is not a CANVAS, so super.keyDown() will be called. Control.keyDown() will conclude that hasKeyboardFocus(id) is false (seems that a ToolItem has the keyboard focus?), so nothing will happen here either.
Comment 1 Nam Le CLA 2012-06-21 18:52:56 EDT
Created attachment 217726 [details]
Sample editor with tab traversal issue
Comment 2 Nam Le CLA 2012-06-21 18:53:03 EDT
I've also stumbled upon this traversal issue, but I'm on 3.7 Mac OSX cocoa. I narrowed the issue down to what David reported. I isolated the issue with within an Editor. See the attached editor. I start tabbing from the left-most text box, and the tabbing will stop to work in the toolbar. Sometimes, after closing and opening the editor the issue will appear.
Comment 3 Silenio Quarti CLA 2012-10-01 15:48:18 EDT
dup

*** This bug has been marked as a duplicate of bug 390713 ***