diff --git a/www/drive/main.js b/www/drive/main.js index 66d040d54..a51c1cfaa 100644 --- a/www/drive/main.js +++ b/www/drive/main.js @@ -400,7 +400,7 @@ define([ if (length === 0) { return; } // List mode if (getViewMode() === "list") { - if (e.which === 40) { click($elements.get(Math.min(lastIndex+1, length))); } + if (e.which === 40) { click($elements.get(Math.min(lastIndex+1, length -1))); } if (e.which === 38) { click($elements.get(Math.max(lastIndex-1, 0))); } return; }