@lvce-editor/explorer-view 6.10.0 → 6.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1717,12 +1717,7 @@ const toDisplayDirent = (parentPath, parentDepth, rawDirentType, rawDirentName,
|
|
|
1717
1717
|
const toDisplayDirents = (pathSeparator, rawDirents, parentDirentPath, parentDirentDepth, excluded, expanded = false) => {
|
|
1718
1718
|
rawDirents = sortExplorerItems(rawDirents);
|
|
1719
1719
|
const result = [];
|
|
1720
|
-
const visibleItems = rawDirents.filter(item =>
|
|
1721
|
-
if (excluded.includes(item.name)) {
|
|
1722
|
-
return false;
|
|
1723
|
-
}
|
|
1724
|
-
return true;
|
|
1725
|
-
});
|
|
1720
|
+
const visibleItems = rawDirents.filter(item => !excluded.includes(item.name));
|
|
1726
1721
|
const count = visibleItems.length;
|
|
1727
1722
|
for (let i = 0; i < visibleItems.length; i++) {
|
|
1728
1723
|
const rawDirent = visibleItems[i];
|
|
@@ -4287,12 +4282,7 @@ const handleClickAt = async (state, defaultPrevented, button, ctrlKey, shiftKey,
|
|
|
4287
4282
|
}
|
|
4288
4283
|
const index = getIndexFromPosition(state, eventX, eventY);
|
|
4289
4284
|
if (index === -1 || index >= state.items.length) {
|
|
4290
|
-
return
|
|
4291
|
-
...state,
|
|
4292
|
-
focused: true,
|
|
4293
|
-
focusedIndex: -1
|
|
4294
|
-
// TODO mark all items as not selected
|
|
4295
|
-
};
|
|
4285
|
+
return focusIndex(state, -1);
|
|
4296
4286
|
}
|
|
4297
4287
|
if (shiftKey) {
|
|
4298
4288
|
return handleClickAtRangeSelection(state, index);
|
|
@@ -5186,6 +5176,9 @@ const handleEscape = async state => {
|
|
|
5186
5176
|
};
|
|
5187
5177
|
|
|
5188
5178
|
const handleFocus = async state => {
|
|
5179
|
+
if (state.editingIndex !== -1) {
|
|
5180
|
+
return state;
|
|
5181
|
+
}
|
|
5189
5182
|
return {
|
|
5190
5183
|
...state,
|
|
5191
5184
|
focus: List
|