Web: Files: fixed selectUpper

This commit is contained in:
Nikita Gopienko 2022-02-10 12:44:25 +03:00
parent 76a1c392c2
commit b066587fdc

View File

@ -416,7 +416,6 @@ class HotkeyStore {
get prevFile() { get prevFile() {
const { filesList, selection, hotkeyCaret } = this.filesStore; const { filesList, selection, hotkeyCaret } = this.filesStore;
if (filesList.length && selection.length && hotkeyCaret) {
if (this.caretIndex !== -1) { if (this.caretIndex !== -1) {
const prevCaretIndex = this.caretIndex - 1; const prevCaretIndex = this.caretIndex - 1;
return filesList[prevCaretIndex]; return filesList[prevCaretIndex];
@ -425,7 +424,6 @@ class HotkeyStore {
return null; return null;
} }
} }
}
get prevForTileUp() { get prevForTileUp() {
const { filesList, folders, hotkeyCaret } = this.filesStore; const { filesList, folders, hotkeyCaret } = this.filesStore;