massautocomplete.js
function set_selection(i) {
        // We use value instead of setting the model's view value
        // because we watch the model value and setting it will trigger
        // a new suggestion cycle.
        var selected = $scope.results[i];
        current_element.val(selected.value);
        $scope.selected_index = i;
        $scope.container[0].setAttribute('aria-activedescendant', selected.id);
        return selected;
      }
function set_selection(i) {
        // We use value instead of setting the model's view value
        // because we watch the model value and setting it will trigger
        // a new suggestion cycle.
        var selected = $scope.results[i];
        current_element.val(selected.value);
        $scope.selected_index = i;
        $scope.container[0].setAttribute('aria-activedescendant', selected.id);
        return selected;
      }
function set_selection ( i ) { // We use value instead of setting the model's view value // because we watch the model value and setting it will trigger // a new suggestion cycle. var selected = $scope . results [ i ] ; current_element . val ( selected . value ) ; $scope . selected_index = i ; $scope . container [ 0 ] . setAttribute ( 'aria-activedescendant' , selected . id ) ; return selected ; }
Set the current selection while navigating through the menu.
Set the current selection while navigating through the menu .