     $('#app').append @notificationWidget.el
 
   searchFocus: (e) =>
-    @query = '' # reset query cache
+    @clearDelay('emptyAndCloseDelayed')
+    @throttledSearch()
     App.PopoverProvidable.anyPopoversDestroy()
     @searchContainer.addClass('focused')
-
-  searchBlur: (e) =>
-    # delay to be able to click x
-    update = =>
-      query = @searchInput.val().trim()
-      if !query
-        @emptyAndClose()
-        return
-
-    @delay(update, 100, 'removeFocused')
+    @selectAll(e)
 
   listNavigate: (e) =>
     if e.keyCode is 27 # close on esc

    'submit form.search-holder': 'preventDefault'
    'dblclick form.search-holder .icon-magnifier': 'openExtendedSearch'
    'focus #global-search': 'searchFocus'
    'blur #global-search': 'searchBlur'
    'keyup #global-search': 'listNavigate'
    'click .js-global-search-result': 'emptyAndClose'
    'click .js-details-link': 'openExtendedSearch'
    'change .js-menu .js-switch input': 'switch'


      @scrollToIfNeeded(prev, false)

  emptyAndClose: =>
    @andClose()
    @andEmpty()

  emptyAndCloseDelayed: =>
    @andClose()
    delay = =>
      @andEmpty()
    @delay(delay, 60000, 'emptyAndCloseDelayed')

  andEmpty: =>
    @query = ''
    @searchInput.val('')

  andClose: =>
    @searchContainer.removeClass('focused filled open no-match loading')
    @globalSearch.close()
    @delayedRemoveAnyPopover()
    @searchInput.blur()

  search: =>
    query = @searchInput.val().trim()
