rem: .keydown(function(e) { switch(e.keyCode) {  case 27: hide(); break;  case 38: case 40: e.preventDefault(); if (results.is(":visible")) { var items = $("li", results); if (!items) return; var index = selectedIndex + (e.keyCode == 38 ? -1 : 1); if (index >= 0 && index < items.length) { move(index); } } else { show(); } break;  case 9: case 13: var li = $("li.selected", results); if (li.length) { select(li); e.preventDefault(); } break;  default: selectedIndex = -1; if (timeout) clearTimeout(timeout); timeout = setTimeout(show, delay); break; } }); 
add: input.blur(function() { if (timeout) clearTimeout(timeout); timeout = setTimeout(hide, 200); }); 
context:     .keydown(function(e) {      switch(e.keyCode) {        case 27: // escape          hide();          break;        case 38: // up        case 40: // down          e.preventDefault();          if (results.is(":visible")) {            var items = $("li", results);            if (!items) return;            var index = selectedIndex + (e.keyCode == 38 ? -1 : 1);            if (index >= 0 && index < items.length) {              move(index);            }          } else {            show();          }          break;        case 9:  // tab        case 13: // return          var li = $("li.selected", results);          if (li.length) {            select(li);            e.preventDefault();          }          break;        default:          selectedIndex = -1;          if (timeout) clearTimeout(timeout);          timeout = setTimeout(show, delay);          break;      }    });
meta: 2557	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2557/ec175125151132e27d1156f40f74eacc8c511014/suggest.js/clean/htdocs/js/suggest.js