         @appendAutoCompletedItem()
       @addItemToSubmitQueue activeItem.item
       @rearrangeInputWidth()
-      @emit 'ItemListChanged'
+      @emit 'ItemListChanged', @selectedItemCounter
     else
       inputView.setValue ''
       @getSingleton("windowController").setKeyView null

      if item.getOptions().userInput is not ""
        @selectedItemCounter++
    else
      @addHiddenInputItem path.join('.'),itemValue

    @addSelectedItemData data
    @addSelectedItem itemName, data

      defaultValue  : value

  removeHiddenInputItem:(name)->
    delete @hiddenInputs[name]

  addSelectedItem:(name,data)->
    {selectedItemClass} = @getOptions()
