Fixed network graph keyboard nav

This commit is contained in:
randx 2012-06-22 23:29:31 +03:00
parent d92a22c9e6
commit f3edea7ed7
3 changed files with 2 additions and 3 deletions

View file

@ -1,5 +1,6 @@
function initGraphNav() {
$("body").keydown(function(e) {
$(".graph svg").css("position", "relative");
$("body").bind("keyup", function(e) {
if(e.keyCode == 37) { // left
$(".graph svg").animate({ left: "+=400" });
} else if(e.keyCode == 39) { // right

View file

@ -702,4 +702,3 @@ li.note {
}
}
}

View file

@ -579,4 +579,3 @@ ul.breadcrumb {
border-top:1px solid #eee;
}
}