Fixed network graph keyboard nav
This commit is contained in:
parent
d92a22c9e6
commit
f3edea7ed7
3 changed files with 2 additions and 3 deletions
|
@ -1,5 +1,6 @@
|
||||||
function initGraphNav() {
|
function initGraphNav() {
|
||||||
$("body").keydown(function(e) {
|
$(".graph svg").css("position", "relative");
|
||||||
|
$("body").bind("keyup", function(e) {
|
||||||
if(e.keyCode == 37) { // left
|
if(e.keyCode == 37) { // left
|
||||||
$(".graph svg").animate({ left: "+=400" });
|
$(".graph svg").animate({ left: "+=400" });
|
||||||
} else if(e.keyCode == 39) { // right
|
} else if(e.keyCode == 39) { // right
|
||||||
|
|
|
@ -702,4 +702,3 @@ li.note {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -579,4 +579,3 @@ ul.breadcrumb {
|
||||||
border-top:1px solid #eee;
|
border-top:1px solid #eee;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue