--- ./misc/autocomplete.js 2009-01-27 17:59:18.640625000 -0500 +++ ./misc/autocomplete.js.revised 2009-01-27 18:03:51.046875000 -0500 @@ -104,6 +104,7 @@ */ Drupal.jsAC.prototype.select = function (node) { this.input.value = node.autocompleteValue; + $(this.input).trigger('autocomplete_select'); }; /** @@ -155,7 +156,7 @@ Drupal.jsAC.prototype.hidePopup = function (keycode) { // Select item if the right key or mousebutton was pressed if (this.selected && ((keycode && keycode != 46 && keycode != 8 && keycode != 27) || !keycode)) { - this.input.value = this.selected.autocompleteValue; + this.select(this.selected); } // Hide popup var popup = this.popup;