This commit is contained in:
Markus Staab
2015-03-27 22:27:34 +01:00
parent 25d3e87c51
commit 20e0b8fdb5
+4 -4
View File
@@ -63,13 +63,13 @@ Zepto(function($) {
// 1) select the next/prev element
// 2) make sure the newly selected element is within the view-scope
// 3) focus the (right) container, so arrow-up/down (without ctrl) scroll the details
if (e.which == 38 /* arrow up */) {
$activeLine.prev(".frame").click();
if (e.which === 38 /* arrow up */) {
$activeLine.prev('.frame').click();
$activeLine[0].scrollIntoView();
$container.focus();
e.preventDefault();
} else if (e.which == 40 /* arrow down */) {
$activeLine.next(".frame").click();
} else if (e.which === 40 /* arrow down */) {
$activeLine.next('.frame').click();
$activeLine[0].scrollIntoView();
$container.focus();
e.preventDefault();