MooTools plugin to turn groups of elements into keyboard navigable menu items
JavaScript
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Demo
Source
README.md
package.yml

README.md

Menuify

Menuify is a class that allows you to turn groups of elements into keyboard navigable menus. Automatically adds arrow key navigation and does not interfere with tabbing as usual, and allows for easy event binding to all menu items.

Screenshot

How to use

You can use Menuify to create a menu by doing the following:

var myMenu = new Menuify($$('#my-list li a'));

You can add events easily like so:

myMenu.addEvents({
	'focus': function(item){
		console.log(item + ' focused');
	},
	'blur': function(item){
		console.log(item + ' blurred');
	}
});