 
   onEnter: (event) ->
     if @currentItem
-      if @currentItem.hasClass('js-enter')
-        return @navigateIn(event)
-      else if @currentItem.hasClass('js-back')
+      if @currentItem.hasClass('js-back')
         return @navigateOut(event)
 
     @clearAutocomplete()


  navigateIn: (event) ->
    event.stopPropagation()
    @navigateDepth(1)

  navigateOut: (event) ->

      @input.val valueName
      @shadowInput.val value

    @input.trigger('change')
    @shadowInput.trigger('change')

    if @currentItem
      if @currentItem.hasClass('js-enter')
        @navigateIn(event)
        @currentItem = null
        return
    @currentItem = null

    @toggle()

  onBlur: ->
