function up() {
				if ($ctrl.keyboardFocusIndex === 0 || $ctrl.keyboardFocusIndex === null) {
					return;
				}
				$ctrl.keyboardFocusIndex -= 1;
				adjustScroll(false);
			}
// Move to previous option on up key press.
Move to previous option on up key press.
Move to previous option on up key press .
function up() {
				if ($ctrl.keyboardFocusIndex === 0 || $ctrl.keyboardFocusIndex === null) {
					return;
				}
				$ctrl.keyboardFocusIndex -= 1;
				adjustScroll(false);
			}
function up ( ) { if ( $ctrl . keyboardFocusIndex === 0 || $ctrl . keyboardFocusIndex === null ) { return ; } $ctrl . keyboardFocusIndex -= 1 ; adjustScroll ( false ) ; }
Move to previous option on up key press.
Move to previous option on up key press .