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

Bug 133722

Summary: [Field Assist] - Arrow up/down cause double traversal on Mac
Product: [Eclipse Project] Platform Reporter: Susan McCourt <susan>
Component: UIAssignee: Susan McCourt <susan>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert, markus.kell.r
Version: 3.2   
Target Milestone: 3.2 RC1   
Hardware: Macintosh   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Bug Depends on: 136272    
Bug Blocks:    
Attachments:
Description Flags
test snippet, attaching to share across platforms none

Description Susan McCourt CLA 2006-03-28 16:48:28 EST
On I20060328-0100
- Open Find/Replace Dialog
- Ensure the Regex checkbox is checked
- Type a '(' character in the find field to auto-invoke content assist
- Hit the arrow-down key to cursor down through the popup choices

Note that the arrow causes traversal of two items.  Every other item is skipped.
Expected:  arrow should simply cursor down.

MAC only (scenario works on Win and Linux)
Comment 1 Susan McCourt CLA 2006-03-28 16:51:03 EST
I suspect this bug was introduced when bug #132101 was fixed.
This symptom is typically caused by SWT.Traversal events that get interpreted in the traversal event, and then cause another keydown event, and get interpreted again in keydown.
When fixing bug #132101, I opened up traversal handling for any key with Alt modification.  

This scenario was tested and working when bug #126138 and bug #120173 were fixed.
Comment 2 Susan McCourt CLA 2006-03-28 17:33:45 EST
see also bug #133536 for other cases affecting traversal.
Note that whether there are saved searches in the combo also affects this behavior, since arrow up/down behavior can cause traversal through the combo items.
Comment 3 Susan McCourt CLA 2006-03-28 17:34:30 EST
cc'ing Markus as this is similar to key traversal issues he has reported.
Comment 4 Susan McCourt CLA 2006-04-12 00:51:01 EDT
Created attachment 38364 [details]
test snippet, attaching to share across platforms
Comment 5 Susan McCourt CLA 2006-04-12 01:12:00 EDT
Opened bug #136272 against SWT.
This appears to be an SWT problem specific to the Mac, as the arrow up/down keys are sending Keydown events for the arrows before sending Traverse events.  

Changing milestone from 3.2RC1 to 3.2 since I am not sure how quickly this will be fixed.  
Comment 6 Susan McCourt CLA 2006-04-12 01:53:28 EDT
note:  If SWT does not fix this, a reasonable workaround is for the popup to only respond to arrow up and down when received in a Traverse event.  This would ignore the spurious keydown.  However, I will wait for them to comment on bug #136272.
Comment 7 Susan McCourt CLA 2006-04-12 13:20:55 EDT
SWT bug has been fixed.  Moving milestone back to RC1 for verification.
Comment 8 Susan McCourt CLA 2006-04-13 15:47:19 EDT
I ended up working around this for RC1, the fix was not in.
Comment 9 Susan McCourt CLA 2006-04-13 15:57:13 EDT
verified on I20060413-0010.
Comment 10 Eclipse Webmaster CLA 2007-07-29 09:19:21 EDT
Changing OS from Mac OS to Mac OS X as per bug 185991