Skip to content

A simple jquery plugin that allows you to traverse lists with keystrokes

Notifications You must be signed in to change notification settings

ohthatjames/traversable_list

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

A proof of concept for traversing lists using the keyboard, written in JQuery. Click on an element to select it, then use 'w' and 's' to move up and down the list. You can bind other keys.

It requires the hotkeys plugin: http://code.google.com/p/js-hotkeys/

Sample usage:

Javascript:

$(document).ready(function() {
	$('ul').traversableList({
		bindings: {
			'a': function(elem){ alert("You pressed a")}
		}
	})
})

CSS:

.selected {
  background-color: red;
}

About

A simple jquery plugin that allows you to traverse lists with keystrokes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published