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

Bug 389340

Summary: Content Assist state gets confused
Product: [ECD] Orion Reporter: Mark Macdonald <mamacdon>
Component: ClientAssignee: Project Inbox <orion.client-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: curtis.windatt.public
Version: 1.0Keywords: helpwanted
Target Milestone: 5.0 M1   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Mark Macdonald CLA 2012-09-11 16:41:21 EDT
1. Load a .js file in the Orion editor.
2. Put the cursor at the start of a new line.
3. Type 'on' (as in onclick, onsubmit, etc)
4. Press Ctrl+Space to activate content assist, then quickly press ENTER.

I expected Content Assist to insert the first proposal.

What actually happens is: the editor inserts a newline, then the Content Assist panel pops up but is in a weird state (not receiving keyboard events).

This is more noticeable now that we have the Esprima content assist, because the longer activation time of the initial content assist action gives you enough time to run into this problem.
Comment 1 Curtis Windatt CLA 2013-11-06 12:30:09 EST
Cannot reproduce in 4.0.  If I hit enter quickly enough, the enter keypress is not recorded and the content assist is popped up as normal.  If I hit it slightly slower the first content assist entry is chosen (content assist doesn't show up in the UI).  If there is any hesitation before hitting enter the content assist opens and pressing enter selects the first entry.