Web: Files: fixed hotkeys

This commit is contained in:
Nikita Gopienko 2022-09-29 16:13:55 +03:00
parent 0f70e76996
commit 540393e9bc

View File

@ -580,6 +580,10 @@ class HotkeyStore {
// } // }
} }
if (nextForTileDown.isFolder === undefined) {
nextForTileDown.isFolder = !!nextForTileDown.parentId;
}
return nextForTileDown; return nextForTileDown;
} }
@ -611,6 +615,11 @@ class HotkeyStore {
} else if (!prevTileFile) { } else if (!prevTileFile) {
prevForTileUp = hotkeyCaret; prevForTileUp = hotkeyCaret;
} }
if (prevForTileUp.isFolder === undefined) {
prevForTileUp.isFolder = !!prevForTileUp.parentId;
}
return prevForTileUp; return prevForTileUp;
} }