Better keyboard handling and show score on results

This commit is contained in:
Joseph Schorr 2015-04-07 12:11:16 -04:00
parent 951b0cbab8
commit 55a2c54ab6
3 changed files with 13 additions and 3 deletions

View file

@ -91,6 +91,11 @@ angular.module('quay').directive('headerBar', function () {
};
$scope.handleSearchKeyDown = function(e) {
if (e.keyCode == 27) {
$scope.toggleSearch();
return;
}
if (!$scope.searchResultState) { return; }
if (e.keyCode == 40) {