function down() {
				if ($ctrl.keyboardFocusIndex === null) {
					$ctrl.keyboardFocusIndex = 0;
					adjustScroll(true);
					$scope.$apply();
					return;
				}

				if ($ctrl.keyboardFocusIndex >= $ctrl.filteredOptions.length - 1) {
					return;
				}

				$ctrl.keyboardFocusIndex += 1;
				adjustScroll(true);
			}
// Move to next option on down key press.
Move to next option on down key press.
Move to next option on down key press .
function down() {
				if ($ctrl.keyboardFocusIndex === null) {
					$ctrl.keyboardFocusIndex = 0;
					adjustScroll(true);
					$scope.$apply();
					return;
				}
				if ($ctrl.keyboardFocusIndex >= $ctrl.filteredOptions.length - 1) {
					return;
				}
				$ctrl.keyboardFocusIndex += 1;
				adjustScroll(true);
			}
function down ( ) { if ( $ctrl . keyboardFocusIndex === null ) { $ctrl . keyboardFocusIndex = 0 ; adjustScroll ( true ) ; $scope . $apply ( ) ; return ; } if ( $ctrl . keyboardFocusIndex >= $ctrl . filteredOptions . length - 1 ) { return ; } $ctrl . keyboardFocusIndex += 1 ; adjustScroll ( true ) ; }
Move to next option on down key press.
Move to next option on down key press .