function shouldProcessEscape() {
    return hasEscapeOption('blur') || !ctrl.hidden || ctrl.loading || hasEscapeOption('clear') && $scope.searchText;
  }
@returns {boolean} if the escape keydown should be processed, return true.
 Otherwise return false.