rem: } 
add: } 
context: CIASearch.onKeyPress = function(ev){    var Event = YAHOO.util.Event;    var kc = Event.getCharCode(ev);    switch (kc) {    case 0x26: // up	if (this.selectionList && this.selectionList.length) {	    this.setCurrentSelection(this.currentSelection - 1);	}	Event.preventDefault(ev);	break;    case 0x28: // down	/*	 * The down arrow can be used, like Enter, to expedite a query-	 * but without the side effect of confirming that query.	 */	if (this.field.value != this.resultsQuery && !this.request) {	    this.cancel();	    this.sendQuery();	}	if (this.selectionList && this.selectionList.length) {	    this.setCurrentSelection(this.currentSelection + 1);	}	Event.preventDefault(ev);	break;    case 0x0d: // enter	if (this.field.value) {	    if (this.field.value == this.resultsQuery) {		/* The current query is valid. */		if (this.selectionList && this.currentSelection < this.selectionList.length) {		    /* We have a selection. Make it so! */		    this.visitSelection(this.selectionList[this.currentSelection]);		}	    } else {		if (!this.request) {		    /* If we don't already have a request in progress, expedite the process */		    this.cancel();		    this.sendQuery();		}		/*		 * Remember that the user confirmed this query. If we get an exact match later,		 * visit it immediately. This enables a convenient one-keypress "I'm feeling lucky"		 * style search.		 */		this.confirmedQuery = this.field.value;	    }	    Event.preventDefault(ev);	    break;	}    case 0x09: // tab	break;    default:	this.delayedUpdateQuery();    }}
meta: 4793	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/4793/cb2bf1e6b4fc7c188dd6e825d90ad9ce6f42be0a/search.js/buggy/cia/media-src/js/local/search.js