Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 133536 - [Field Assist] - PageUp and PageDown in ContentAssistFields change combo contents
Summary: [Field Assist] - PageUp and PageDown in ContentAssistFields change combo cont...
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.2 RC1   Edit
Assignee: Susan McCourt CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-28 10:04 EST by Markus Keller CLA
Modified: 2010-04-19 06:19 EDT (History)
2 users (show)

See Also:


Attachments
This is a snippet highlighting the bug. (1.86 KB, text/x-java)
2010-04-19 05:31 EDT, Lucien Pereira CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Keller CLA 2006-03-28 10:04:13 EST
I20060328-0010

To reproduce:
- open Find/Replace dialog
- find some text, such that the MRU combo for the Find field contains something
- enable regex
- invoke content assist in Find field

=> pressing PageUp or PageDown changes the Find field text as welll
=> pressing Home or End moves the caret in the Find field as well
All these keys should only move the selection in the popup list.
Comment 1 Eric Moffatt CLA 2006-03-28 14:42:43 EST
Susan, If this isn't field-assist related then punt it back...
Comment 2 Susan McCourt CLA 2006-03-28 17:10:23 EST
hmmm..differing results on different platforms.
Don't see this on the Mac on I20060328-0010, but i do see a similar problem with the arrow keys (whereby the arrow affects the combo and the popup).  PageUp and PageDown do not affect the combo contents on the Mac, whereby arrow key does.

On Linux GTK (I20060328-0010) the arrow keys and PageUp/PageDown work as expected (affecting the popup only).
Comment 3 Susan McCourt CLA 2006-03-28 17:46:04 EST
This behavior occurs as described on Windows.  To summarize:

Windows 
 - arrow up/down works as expected (affects only popup selection)
 - page up/down affects the combo contents (incorrect) and the popup selection
 - when combo selection is affected, the combo doesn't open

Mac
- arrow up/down affects the combo contents (incorrect) and popup selection
- when combo selection is affected, the combo actually opens (bad)
- page up/down works as expected (affects only popup selection)

Linux/GTK
- arrow up/down works as expected (affects only popup selection)
- page up/down works as expected (affects only popup selection)

Any solution needs to be tried on all platforms and also consider bug #133722
Comment 4 Susan McCourt CLA 2006-04-12 01:17:31 EDT
The incorrect behavior on the Mac is explained by bug #133722 (SWT bug #136272).  So this bug refers to the Windows-only behavior whereby PageUp and PageDown are affecting the combo contents.

Windows 
 - arrow up/down works as expected (affects only popup selection)
 - page up/down affects the combo contents (incorrect) and the popup selection
 - when combo selection is affected, the combo doesn't open

Comment 5 Susan McCourt CLA 2006-04-12 01:59:34 EDT
Navigation keys handled by the popup should never allow propagation of the keystroke back to the target control, even if propagateKeys = true.
Fixed >20060411.
Comment 6 Susan McCourt CLA 2006-04-13 19:51:13 EDT
verified in I20060413-0100, WinXP
Comment 7 Lucien Pereira CLA 2010-04-19 05:31:41 EDT
Created attachment 165252 [details]
This is a snippet highlighting the bug.
Comment 8 Lucien Pereira CLA 2010-04-19 05:35:11 EDT
I'm experimenting the bug with the snippet attached bellow.
This appends on a linux machine (not tested in other OS).
Please let me no there is a bug or I'm simply doing it wrong.

Lucien Pereira
Comment 9 Lucien Pereira CLA 2010-04-19 06:16:41 EDT
I tested the snippet on Windows Vista, it works perfectly.
Do I have to report a bug for Linux Platform ?
Comment 10 Dani Megert CLA 2010-04-19 06:19:46 EDT
Yes, if you see the problem then please file a new bug with steps to reproduce and indicate which build you are using.