Bug 133620 [FieldAssist] auto activation of proposal popup should be canceled on keystroke
I20060328-0010 Auto activation of the proposal popup should be canceled on keystroke. Steps: - open Find/Replace dialog, activate regex - type "\rrrrrrr" as fast as possible => after a few "r"s, the proposal popup appears at the last "r" inserted This is not the intent of the "auto activation with delay" feature. Auto activation is intended to help the user if he stops typing and starts to think about possible completions. It should be triggered when the user types "\" and then waits a while, but the popup should not appear when the user continues typing after the trigger character.
bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/ContentProposalAdapter.java
/*
	 * A boolean indicating whether a keystroke has been received.  
	 * Used to see if an autoactivation delay was interrupted by 
	 * a keystroke.
	 */
	private boolean receivedKeyDown;
	/*
	 * The desired size in pixels of the proposal popup.
	 */
	private Point popupSize;
	/*
	 * The remembered position of the insertion position. Not all controls will
	 * restore the insertion position if the proposal popup gets focus, so we
	 * need to remember it.
	 */
	private int insertionPos = -1;
	/**
	 * Construct a content proposal adapter that can assist the user with
	 * choosing content for the field.
	 * 
	 * @param control
	 *            the control for which the adapter is providing content assist.
	 *            May not be <code>null</code>.
	 * @param controlContentAdapter
	 *            the <code>IControlContentAdapter</code> used to obtain and
	 *            update the control's contents as proposals are accepted. May
	 *            not be <code>null</code>.
	 * @param proposalProvider
	 *            the <code>IContentProposalProvider</code> used to obtain
	 *            content proposals for this control, or <code>null</code> if