diff options
Diffstat (limited to 'plugins/CoreHome/angularjs/quick-access/quick-access.controller.js')
-rw-r--r-- | plugins/CoreHome/angularjs/quick-access/quick-access.controller.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/CoreHome/angularjs/quick-access/quick-access.controller.js b/plugins/CoreHome/angularjs/quick-access/quick-access.controller.js index 9e1fefba82..8c06aa7432 100644 --- a/plugins/CoreHome/angularjs/quick-access/quick-access.controller.js +++ b/plugins/CoreHome/angularjs/quick-access/quick-access.controller.js @@ -16,6 +16,9 @@ this.sitesModel = siteSelectorModel; this.onKeypress = function (event) { + var areSearchResultsDisplayed = $scope.search && $scope.search.term && $scope.view && $scope.view.searchActive; + var isTabKey = 9 == event.which + if (38 == event.which) { $scope.highlightPreviousItem(); event.preventDefault(); @@ -24,6 +27,8 @@ event.preventDefault(); } else if (13 == event.which) { $scope.clickQuickAccessMenuItem(); + } else if (isTabKey && areSearchResultsDisplayed) { + $scope.deactivateSearch(); } }; |