|
|
@ -400,7 +400,7 @@ define([
|
|
|
|
if (length === 0) { return; }
|
|
|
|
if (length === 0) { return; }
|
|
|
|
// List mode
|
|
|
|
// List mode
|
|
|
|
if (getViewMode() === "list") {
|
|
|
|
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))); }
|
|
|
|
if (e.which === 38) { click($elements.get(Math.max(lastIndex-1, 0))); }
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|