Autocomplete keypress skip menu

Autocomplete keypress skip menu

Hi All,

I am using jquery-ui 1.11.2 for autocomplete with the following custom menu rendering:

  1. function integrationSearchRenderMenu(ul, items) {
  2.   var self = this,
  3.       emptyItem = { label: '', value: '' };

  4.     ul.append($('<div></div>').data('ui-autocomplete-item', emptyItem).append(
  5.               '<div class="image"></div>' +
  6.               '<div class="name">Product</div>' +
  7.               '<div class="dek">Description</div>').addClass('ui-widget-header'));

  8.   ul.addClass('integration-search');

  9.   $.each(items, function(index, item) {
  10.     self._renderItemData(ul, item);
  11.   });
  12. }

When using the arrow keys to navigate into the autocomplete options, the menu is getting focus first, requiring an extra key press to get past. How would I skip directly to the real items?