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

Bug 341117

Summary: ToolItem traversal does not fire deactivate event.
Product: [Eclipse Project] Platform Reporter: Stuart Barker <dsb-eclipsebugs>
Component: SWTAssignee: Eric Williams <ericwill>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: ericwill, pinnamur
Version: 4.1Keywords: triaged
Target Milestone: 4.14 M1   
Hardware: PC   
OS: Linux   
See Also: https://git.eclipse.org/r/149359
https://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=5562fddca07e3abaeec9be17c57902bc96842af2
Whiteboard: RHT
Attachments:
Description Flags
ToolItem no deactivate event none

Description Stuart Barker CLA 2011-03-28 11:13:22 EDT
Build Identifier: M20100909-0800

When using tab to traverse, a ToolItem in a ToolBar does not send deactivate event to existing active control when it receives focus.

This is for Linux, on Windows a deactivate event is fired.

Reproducible: Always

Steps to Reproduce:
1.Run the attached snippet in Linux (gtk).
2.Tab through the the two Text controls and the ToolItem button
3.Note that Text 2 does not receive a deactivate event until Text 1 is activated
4. On Windows Text 2 gets a deactivate event when the toolbar button receives focus.
Comment 1 Stuart Barker CLA 2011-03-28 11:14:43 EDT
Created attachment 192010 [details]
ToolItem no deactivate event
Comment 2 Eric Williams CLA 2018-06-29 15:25:24 EDT
Still reproducible on SWT master as of today, Fedora 28, and GTK3.22.
Comment 3 Eclipse Genie CLA 2019-09-11 10:39:40 EDT
New Gerrit change created: https://git.eclipse.org/r/149359
Comment 5 Eric Williams CLA 2019-09-11 13:00:18 EDT
(In reply to Eclipse Genie from comment #4)
> Gerrit change https://git.eclipse.org/r/149359 was merged to [master].
> Commit:
> http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/
> ?id=5562fddca07e3abaeec9be17c57902bc96842af2

In master now.
Comment 6 Eric Williams CLA 2019-10-08 13:25:53 EDT
Verified in I20191008-0600.