addCurrentToHistory();
if(enterAddsToHistory) addCurrentToHistory();
	protected void processKeyEvent(KeyEvent evt)	{		if(evt.getID() == KeyEvent.KEY_PRESSED)		{			if(evt.getKeyCode() == KeyEvent.VK_ENTER)			{				addCurrentToHistory();				fireActionPerformed();				evt.consume();			}			else if(evt.getKeyCode() == KeyEvent.VK_UP)			{				if((evt.getModifiers() & InputEvent.CTRL_MASK) != 0)					doBackwardSearch();				else					historyPrevious();				evt.consume();			}			else if(evt.getKeyCode() == KeyEvent.VK_DOWN)			{				if((evt.getModifiers() & InputEvent.CTRL_MASK) != 0)					doForwardSearch();				else					historyNext();				evt.consume();			}			else if(evt.getKeyCode() == KeyEvent.VK_TAB				&& (evt.getModifiers() & InputEvent.CTRL_MASK) != 0)			{				doBackwardSearch();				evt.consume();			}		}		if(!evt.isConsumed())			super.processKeyEvent(evt);	}