Javascript snippet to enable arrow key navigation in CakePHP index views

Javascript snippet to enable arrow key navigation in CakePHP index views

This javascript code will allow keyboard navigation in CakePHP’s scaffolding or any view that uses the CakePHP Paginator links.

The code works as follows…

  • ctrl+up arrow goes to first page in index
  • ctrl+right arrow goes to next page in index
  • ctrl+left arrow goes to prev page in index
  • ctrl+down arrow goes to last page in index

This code example depends on jquery.

Comments are closed.