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