Example Code: $(window).keyup(function(event) {
var $activeListElement = $('.box-content li.active');
if ($activeListElement.length) {
if (event.keyCode === 39 || event.keyCode === 68) { // right arrow or d
$activeListElement.next().find('div').first().click();
} else if (event.keyCode === 37 || event.keyCode === 65) { // left arrow or a
$activeListElement.prev().find('div').first().click();
} else if (event.keyCode === 38 || event.keyCode === 87) { // up arrow or w
$activeListElement.prevAll().eq(4).find('div').first().click();
} else if (event.keyCode === 40 || event.keyCode === 83) { // down arrow or s
$activeListElement.nextAll().eq(4).find('div').first().click();
}
}
});
BrainFooLong
Administrator
Cool, i suggest you to create a custom plugin for this feature.
Post edited 3 x times, last by
Lexo91
Topicstarter
Lexo91
so i tried to convert it to a plugin but the storage is not doing what I expected.
The option disable enable does strange thing sometimes on reload the storage is false.