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

Bug 365723

Summary: Problem with Escape to close completion (ContentProposalAdapter) close dialog.
Product: [RT] RAP Reporter: Angelo ZERR <azerr>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 1.5   
Target Milestone: 1.5 M5   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 330461    

Description Angelo ZERR CLA 2011-12-06 08:18:57 EST
Hi,

I have completion with ContentProposalAdapter in a Dialog. When popup completion opens and I key "Esc" to close the popup, the popup closes (it"s OK) but my Dialog closes too (not OK).

The case with "Esc" which works is if I open the popup, I select an item to the popup with mouse and I key "Esc", the popup closes and my Dialog DOENS'T close.

I have tested that with FF, Google Chrome and IE8.

Regards Angelo
Comment 1 Ralf Sternberg CLA 2011-12-08 06:02:34 EST
Seems to be related to bug 329926. Probably Escape and Return keys need to be prevented when any pop-ups are opened.
Comment 2 Ivan Furnadjiev CLA 2011-12-09 03:46:56 EST
After a quick look even the ESC key event is canceled on the server (doit = false ContentProposalAdapter line 368) this event reaches the dialog shell.
Comment 3 Ivan Furnadjiev CLA 2012-01-25 08:33:35 EST
ESC and ENTER keys have been added to the CANCEL_KEYS. Dialog should not be affected by ESC and ENTER anymore.