From 9cdb4efe5bebce040ad2be5242d2a05d269f2111 Mon Sep 17 00:00:00 2001 From: nikec <43032218+niikeec@users.noreply.github.com> Date: Fri, 13 Oct 2023 04:10:06 +0200 Subject: [PATCH] [ENG-1266] Fix rename keybind (#1553) Fix rename keybind --- .../app/$libraryId/Explorer/ContextMenu/SharedItems.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/interface/app/$libraryId/Explorer/ContextMenu/SharedItems.tsx b/interface/app/$libraryId/Explorer/ContextMenu/SharedItems.tsx index 692f23bc7..32a5beeb2 100644 --- a/interface/app/$libraryId/Explorer/ContextMenu/SharedItems.tsx +++ b/interface/app/$libraryId/Explorer/ContextMenu/SharedItems.tsx @@ -3,8 +3,9 @@ import type {} from '@sd/client'; import { FileX, Share as ShareIcon } from '@phosphor-icons/react'; import { useMemo } from 'react'; -import { ContextMenu, ModifierKeys, toast } from '@sd/ui'; +import { ContextMenu, ModifierKeys } from '@sd/ui'; import { Menu } from '~/components/Menu'; +import { useOperatingSystem } from '~/hooks'; import { useKeybindFactory } from '~/hooks/useKeybindFactory'; import { isNonEmpty } from '~/util'; import { usePlatform, type Platform } from '~/util/Platform'; @@ -104,11 +105,12 @@ export const Rename = new ConditionalItem({ Component: () => { const explorerView = useExplorerViewContext(); const keybind = useKeybindFactory(); + const os = useOperatingSystem(true); return ( explorerView.setIsRenaming(true)} /> );