context: function keypressed(keycode, keyvalue) {	if(liveSearchTimer) {		window.clearTimeout(liveSearchTimer);	}			//_pressed = new Date().getTime();			switch (keycode) {		case KEYCODE_LEFT:		case KEYCODE_UP:			if(selectedSuggestion > 0) {				selectSuggestion(selectedSuggestion-1);			}			break;				case KEYCODE_RIGHT:		case KEYCODE_DOWN:			document.title='down '+selectedSuggestion;			//if(selectedSuggestion) {			if(resultboxVisible) {				document.title='is selected';				if(selectedSuggestion < resultRows.length-1) {					selectSuggestion(selectedSuggestion+1);				} else {					selectSuggestion(0);				}			}			break;				case KEYCODE_ENTER:			if(resultboxVisible) {				currentInputField.value = results[selectedSuggestion];				hideResultBox();			}			focusToNextInputField();			searchActive=false;			break;					case KEYCODE_ESC:			hideResultBox();			break;		//		case KEYCODE_TAB://			//if (currentSuggestion>=0&&currentSuggestion<_ids.length){_setValue(currentSuggestion);}//			//currentInputField.value = results[selectedSuggestion-1];//			hideResultBox();//			searchActive=false;//			break;		case KEYCODE_TAB:			if(resultboxVisible) {				if( selectedSuggestion < resultRows.length-1) {					selectSuggestion(selectedSuggestion+1);				} else {					selectSuggestion(0);				}			} else {				focusToNextInputField();			}			break;						case KEYCODE_ALT:		case KEYCODE_SHIFT:			break;				default:			//_setValue(-1);			liveSearchTimer = window.setTimeout('startLiveSearch()', keyboardTimeout);			if(!currentInputField.parentNode.parentNode.nextSibling) {				addAddressRow(currentInputField.parentNode.parentNode);			}			hideResultBox();	}}
meta: 7119	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/7119/556d68efdfbfd2264821a508e1819795e9e13402/composeMessage.js/buggy/felamimail/js/jscode/composeMessage.js