rem: hideAutoComplete(); 
add: hideAutoComplete(); }  if(typeof objonkeydown == "function")objonkeydown(); if(typeof objonchange == "function")objonchange();  if(selected>-1){ 
context:         obj.onkeydown=function(event){            switch(wicketKeyCode(getEvent(event))){                case KEY_UP:        	        if(selected>-1)selected--;            	    if(selected==-1){    	           	    hideAutoComplete();                   	} else {	                    render();        	        }            	    if(navigator.appVersion.indexOf('AppleWebKit')>0)return killEvent(event);                	break;                case KEY_DOWN:               		if(selected<elementCount-1){                	    selected++;	                }    	            if(visible==0){        	            updateChoices();            	    } else {                	    render();                    	showAutoComplete();	                }    	            if(navigator.appVersion.indexOf('AppleWebKit')>0)return killEvent(event);        	        break;                case KEY_ESC:            	    hideAutoComplete();                	return killEvent(event);               		break;                case KEY_ENTER:	                if(selected>-1){    	                obj.value=getSelectedValue();        	            hideAutoComplete();	                	return killEvent(event);            	    }            	    return true;                break;                default:            }        }
meta: 1204	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1204/0ece11b9816a2aa9b8d6e5d0c89b7bbc544285a4/wicket-autocomplete.js/clean/jdk-1.4/wicket-extensions/src/main/java/wicket/extensions/ajax/markup/html/autocomplete/wicket-autocomplete.js