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

Bug 314074

Summary: [SWT][Mac10.6.3]When switch mac system workspace by Ctrl+1, the MouseEvent.stateMask is error
Product: [Eclipse Project] Platform Reporter: alf <lihedl>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: linyunz, lshanmug, mukund, raji
Version: 3.5.2   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Attachments:
Description Flags
Sample code for this bug. none

Description alf CLA 2010-05-24 04:56:47 EDT
Build Identifier: 20090920-1017

Mac support shortcut for switch Spaces. You can set the Switch Spaces with "Ctrl + 1" by "System Perferences".  After uses  "Ctrl + 1" to switch spaces and switch back, you click mouse left key on widget, The MouseEvent.stateMask that swt create is error.
if(e.stateMask & SWT.CTRL) != 0  will is true, this should be false because we do not  key the "control" down. 

Reproducible: Always

Steps to Reproduce:
1.Set "Switch Spaces" shotcut with "Ctrl + 1".
2.Inport sample code into eclipse, and run it. 
3. click mouse left in "red area", nothing happens.
4. switch spaces by "Ctrl +1" and switch back.
5. click mouse left in "red area" again,  The "CTRL click" will show in eclispe console.
Comment 1 alf CLA 2010-05-24 05:05:43 EDT
Created attachment 169644 [details]
Sample code for this bug.
Comment 2 alf CLA 2010-05-24 05:09:25 EDT
Notes: This bug happend in Mac OS X 10.6.3.
             In Mac 10.5.8 did not happened.
Comment 3 Lakshmi P Shanmugam CLA 2017-07-04 06:15:17 EDT
This is not reproducible on macOS 10.12 with Eclipse 4.7. Please reopen if you see this problem again.