src/boxesscroll.js
function keydown(event) {
			var inc = 0;
			if (ctrl.horizontal) {
				if (event.which === 37) { // LEFT
					inc = -1;
				} else if (event.which === 39) { // RIGHT
					inc = 1;
				}
			} else {
				var innerLimit = ctrl.getInnerLimit();
				if (event.which === 38) { // UP
					inc = -1;
				} else if (event.which === 40) { // DOWN
					inc = 1;
				} else if (event.which === 33) { // PAGEUP
					inc = -innerLimit;
				} else if (event.which === 34) { // PAGEDOWN
					inc = innerLimit;
				} else if (event.which === 35) { // END
					inc = $scope.total - $scope.ngBegin - innerLimit;
				} else if (event.which === 36) { // HOME
					inc = -$scope.ngBegin;
				}
			}
			if (inc !== 0) {
				boxesScrollServices.stopEvent(event);
				$scope.ngBegin = $scope.ngBegin + inc;
			}
		}
function keydown(event) {
			var inc = 0;
			if (ctrl.horizontal) {
				if (event.which === 37) { // LEFT
					inc = -1;
				} else if (event.which === 39) { // RIGHT
					inc = 1;
				}
			} else {
				var innerLimit = ctrl.getInnerLimit();
				if (event.which === 38) { // UP
					inc = -1;
				} else if (event.which === 40) { // DOWN
					inc = 1;
				} else if (event.which === 33) { // PAGEUP
					inc = -innerLimit;
				} else if (event.which === 34) { // PAGEDOWN
					inc = innerLimit;
				} else if (event.which === 35) { // END
					inc = $scope.total - $scope.ngBegin - innerLimit;
				} else if (event.which === 36) { // HOME
					inc = -$scope.ngBegin;
				}
			}
			if (inc !== 0) {
				boxesScrollServices.stopEvent(event);
				$scope.ngBegin = $scope.ngBegin + inc;
			}
		}
function keydown ( event ) { var inc = 0 ; if ( ctrl . horizontal ) { if ( event . which === 37 ) { // LEFT inc = - 1 ; } else if ( event . which === 39 ) { // RIGHT inc = 1 ; } } else { var innerLimit = ctrl . getInnerLimit ( ) ; if ( event . which === 38 ) { // UP inc = - 1 ; } else if ( event . which === 40 ) { // DOWN inc = 1 ; } else if ( event . which === 33 ) { // PAGEUP inc = - innerLimit ; } else if ( event . which === 34 ) { // PAGEDOWN inc = innerLimit ; } else if ( event . which === 35 ) { // END inc = $scope . total - $scope . ngBegin - innerLimit ; } else if ( event . which === 36 ) { // HOME inc = - $scope . ngBegin ; } } if ( inc !== 0 ) { boxesScrollServices . stopEvent ( event ) ; $scope . ngBegin = $scope . ngBegin + inc ; } }
Gere la navigation clavier
@param {type} event
Gere la navigation clavier