mirror of
https://github.com/spacedriveapp/spacedrive
synced 2024-07-07 06:43:29 +00:00
parent
aafd8e29a1
commit
73cb692218
|
@ -75,7 +75,10 @@ export const useKeySelection = (grid: Grid, options: Options = { scrollToEnd: fa
|
||||||
}, [explorer.items]);
|
}, [explorer.items]);
|
||||||
|
|
||||||
const updateFirstActiveItem = useCallback(
|
const updateFirstActiveItem = useCallback(
|
||||||
(item: ExplorerItem | null, options: UpdateActiveItemOptions = {}) => {
|
(
|
||||||
|
item: ExplorerItem | null,
|
||||||
|
options: Omit<UpdateActiveItemOptions, 'updateFirstItem'> = {}
|
||||||
|
) => {
|
||||||
if (explorerOperatingSystem !== 'windows') return;
|
if (explorerOperatingSystem !== 'windows') return;
|
||||||
|
|
||||||
firstActiveItem.current = item;
|
firstActiveItem.current = item;
|
||||||
|
|
Loading…
Reference in a new issue